#420E51#420E51

#420E51 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.120 H 317.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#420E51
RGBrgb(66, 14, 81)
HSLhsl(287, 71%, 19%)
HSVhsv(287, 83%, 32%)
CMYKcmyk(18.5%, 82.7%, 0%, 68.2%)
CIE-LABlab(15.83, 35.08, -28.80)
CIE-LCHlch(15.83, 45.39, 320.61°)
OKLaboklab(29% 0.088 -0.0811)
OKLCHoklch(29% 0.12 317.3)
XYZxyz(3.8888, 2.0666, 7.9770)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420E51 #1D510E
analogous
#200E51 #420E51 #510E3E
triadic
#420E51 #51420E #0E5142
tetradic
#420E51 #51200E #1D510E #0E3E51
square
#420E51 #51200E #1D510E #0E3E51
split-complementary
#420E51 #3E510E #0E5120
monochromatic
#15051A #17051D #420E51 #6D1785 #9720B9

Accessibility & contrast

On white

14.86
#420E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#420E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420E51
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420E51#FFFFFF#000000##FFFFFF
##420E511.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#102950
Tritanopia (blue-blind)
#411D2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #420e51;
/* rgb */ color: rgb(66, 14, 81);
/* oklch */ color: oklch(29.0% 0.120 317.3);
Tailwind
colors: {
  custom: {
    50: '#795382',
    500: '#420e51',
    950: '#000000',
  },
}
SCSS
$custom: #420e51;
$custom-light: #795382;
$custom-dark: #000000;
JSON
{
  "hex": "#420e51",
  "rgb": {
    "r": 66,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 286.567,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29002,
    "c": 0.11963,
    "h": 317.3
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#420E51
secondary
#448C2F
accent
#ED3A63
background
#F7F4F8
surface
#EEE8EF
border
#C9C4CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420E51

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

Preview Lab → · Contrast checker → · Palette generator →

#420E51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva