#4E20A1#4E20A1

#4E20A1 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.189 H 291.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4E20A1
RGBrgb(78, 32, 161)
HSLhsl(261, 67%, 38%)
HSVhsv(261, 80%, 63%)
CMYKcmyk(51.6%, 80.1%, 0%, 36.9%)
CIE-LABlab(27.37, 49.82, -61.16)
CIE-LCHlch(27.37, 78.88, 309.16°)
OKLaboklab(39.66% 0.0689 -0.1757)
OKLCHoklch(39.66% 0.189 291.4)
XYZxyz(10.0896, 5.2255, 34.1883)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E20A1 #73A120
analogous
#2033A1 #4E20A1 #8E20A1
triadic
#4E20A1 #A14E20 #20A14E
tetradic
#4E20A1 #A12033 #73A120 #20A18E
square
#4E20A1 #A12033 #73A120 #20A18E
split-complementary
#4E20A1 #A18E20 #33A120
monochromatic
#1D0C3B #35166E #4E20A1 #672AD4 #8B5DDF

Accessibility & contrast

On white

10.27
#4E20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E20A1
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E20A1#FFFFFF#000000##FFFFFF
##4E20A11.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#314561
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e20a1;
/* rgb */ color: rgb(78, 32, 161);
/* oklch */ color: oklch(39.7% 0.189 291.4);
Tailwind
colors: {
  custom: {
    50: '#8962be',
    500: '#4e20a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e20a1;
$custom-light: #8962be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e20a1",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 261.395,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39657,
    "c": 0.18875,
    "h": 291.4
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#4E20A1
secondary
#9EC35A
accent
#EA3EAD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4E20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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