#420B52#420B52

#420B52 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.8% C 0.124 H 317.0°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#420B52
RGBrgb(66, 11, 82)
HSLhsl(286, 76%, 18%)
HSVhsv(286, 87%, 32%)
CMYKcmyk(19.5%, 86.6%, 0%, 67.8%)
CIE-LABlab(15.52, 36.42, -29.98)
CIE-LCHlch(15.52, 47.17, 320.54°)
OKLaboklab(28.81% 0.0907 -0.0845)
OKLCHoklch(28.81% 0.124 317)
XYZxyz(3.8892, 2.0070, 8.1635)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420B52 #1B520B
analogous
#1E0B52 #420B52 #520B3E
triadic
#420B52 #52420B #0B5242
tetradic
#420B52 #521E0B #1B520B #0B3E52
square
#420B52 #521E0B #1B520B #0B3E52
split-complementary
#420B52 #3E520B #0B521E
monochromatic
#16041B #17041C #420B52 #6D1288 #9919BE

Accessibility & contrast

On white

14.99
#420B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#420B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420B52
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420B52#FFFFFF#000000##FFFFFF
##420B521.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#0C2851
Tritanopia (blue-blind)
#411C2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #420b52;
/* rgb */ color: rgb(66, 11, 82);
/* oklch */ color: oklch(28.8% 0.124 317.0);
Tailwind
colors: {
  custom: {
    50: '#795283',
    500: '#420b52',
    950: '#000000',
  },
}
SCSS
$custom: #420b52;
$custom-light: #795283;
$custom-dark: #000000;
JSON
{
  "hex": "#420b52",
  "rgb": {
    "r": 66,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 286.479,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28809,
    "c": 0.12395,
    "h": 317
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#420B52
secondary
#418E2B
accent
#F33560
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09020A
muted
#7B787C

Preview Lab

Preview with #420B52

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

Preview Lab → · Contrast checker → · Palette generator →

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