#420E52#420E52

#420E52 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.1% C 0.121 H 316.7°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#420E52
RGBrgb(66, 14, 82)
HSLhsl(286, 71%, 19%)
HSVhsv(286, 83%, 32%)
CMYKcmyk(19.5%, 82.9%, 0%, 67.8%)
CIE-LABlab(15.91, 35.30, -29.36)
CIE-LCHlch(15.91, 45.92, 320.25°)
OKLaboklab(29.08% 0.0878 -0.0827)
OKLCHoklch(29.08% 0.121 316.7)
XYZxyz(3.9266, 2.0817, 8.1760)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420E52 #1E520E
analogous
#200E52 #420E52 #520E40
triadic
#420E52 #52420E #0E5242
tetradic
#420E52 #52200E #1E520E #0E4052
square
#420E52 #52200E #1E520E #0E4052
split-complementary
#420E52 #40520E #0E5220
monochromatic
#15041A #18051E #420E52 #6C1786 #9620BB

Accessibility & contrast

On white

14.83
#420E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#420E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420E52
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420E52#FFFFFF#000000##FFFFFF
##420E521.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#411D2F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #420e52;
/* rgb */ color: rgb(66, 14, 82);
/* oklch */ color: oklch(29.1% 0.121 316.7);
Tailwind
colors: {
  custom: {
    50: '#795383',
    500: '#420e52',
    950: '#000000',
  },
}
SCSS
$custom: #420e52;
$custom-light: #795383;
$custom-dark: #000000;
JSON
{
  "hex": "#420e52",
  "rgb": {
    "r": 66,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 285.882,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29081,
    "c": 0.12062,
    "h": 316.7
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#420E52
secondary
#458C2F
accent
#EE3A64
background
#F7F5F8
surface
#EEE8EF
border
#C9C4CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420E52

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

Preview Lab → · Contrast checker → · Palette generator →

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