#4A217E#4A217E

#4A217E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.148 H 298.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4A217E
RGBrgb(74, 33, 126)
HSLhsl(266, 58%, 31%)
HSVhsv(266, 74%, 49%)
CMYKcmyk(41.3%, 73.8%, 0%, 50.6%)
CIE-LABlab(23.84, 39.20, -45.27)
CIE-LCHlch(23.84, 59.88, 310.88°)
OKLaboklab(36.08% 0.0713 -0.1293)
OKLCHoklch(36.08% 0.148 298.9)
XYZxyz(7.1328, 4.0498, 20.1405)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A217E #557E21
analogous
#21267E #4A217E #78217E
triadic
#4A217E #7E4A21 #217E4A
tetradic
#4A217E #7E2126 #557E21 #217E78
square
#4A217E #7E2126 #557E21 #217E78
split-complementary
#4A217E #7E7821 #267E21
monochromatic
#11081D #2E144E #4A217E #662EAE #854AD0

Accessibility & contrast

On white

11.60
#4A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A217E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A217E#FFFFFF#000000##FFFFFF
##4A217E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#3E384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a217e;
/* rgb */ color: rgb(74, 33, 126);
/* oklch */ color: oklch(36.1% 0.148 298.9);
Tailwind
colors: {
  custom: {
    50: '#8260a4',
    500: '#4a217e',
    950: '#000000',
  },
}
SCSS
$custom: #4a217e;
$custom-light: #8260a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a217e",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 266.452,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36084,
    "c": 0.14762,
    "h": 298.9
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#4A217E
secondary
#83B14A
accent
#E2469D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A217E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4A217E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva