#A12262
≈ mediumvioletred · rgb(161, 34, 98)
Color formats
HEX#A12262
RGBrgb(161, 34, 98)
HSLhsl(330, 65%, 38%)
HSVhsv(330, 79%, 63%)
OKLCHoklch(48% 0.17 355)
CMYKcmyk(0%, 79%, 39%, 37%)
Contrast & accessibility
On white7.19:1AA pass
On black2.92:1below AA
Best text color#FFFFFF
Nearest CSS name: mediumvioletred
Copy-ready code
CSS custom properties
:root {
--mediumvioletred: #a12262;
--mediumvioletred-rgb: 161 34 98;
--mediumvioletred-oklch: oklch(48% 0.17 355);
}The space-separated triple lets you set alpha without a second variable:
background: rgb(var(--mediumvioletred-rgb) / 40%);
Tailwind (arbitrary value)
bg-[#a12262] text-[#a12262] border-[#a12262]
Shades & tints
50
#EEE3E8
100
#E4CFD9
200
#D5A2BC
300
#CB709E
400
#C73880
500
#A12262
600
#7E1F4F
700
#5E1A3C
800
#3E1429
900
#210C16
950
#13070D
Color harmonies
Complementary
#22A161
Analogous −30°
#A122A1
Analogous +30°
#A12222
Triadic +120°
#62A122
Triadic −120°
#2262A1
About this color
#A12262 is a color with the RGB value rgb(161, 34, 98). Its closest CSS named color is "mediumvioletred". On this page you'll find every format (HEX, RGB, HSL, HSV, OKLCH, CMYK), WCAG contrast against white and black, a full 50–950 shade scale, and complementary, analogous and triadic harmonies — each linking to its own color page.