#420D4E#420D4E

#420D4E is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.118 H 319.4°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#420D4E
RGBrgb(66, 13, 78)
HSLhsl(289, 71%, 18%)
HSVhsv(289, 83%, 31%)
CMYKcmyk(15.4%, 83.3%, 0%, 69.4%)
CIE-LABlab(15.47, 34.82, -27.34)
CIE-LCHlch(15.47, 44.27, 321.86°)
OKLaboklab(28.67% 0.0894 -0.0768)
OKLCHoklch(28.67% 0.118 319.4)
XYZxyz(3.7657, 1.9963, 7.3932)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420D4E #194E0D
analogous
#210D4E #420D4E #4E0D39
triadic
#420D4E #4E420D #0D4E42
tetradic
#420D4E #4E210D #194E0D #0D394E
square
#420D4E #4E210D #194E0D #0D394E
split-complementary
#420D4E #394E0D #0D4E21
monochromatic
#16041A #16041A #420D4E #6E1682 #9B1EB7

Accessibility & contrast

On white

15.01
#420D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420D4E
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420D4E#FFFFFF#000000##FFFFFF
##420D4E1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#12284D
Tritanopia (blue-blind)
#421B2D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #420d4e;
/* rgb */ color: rgb(66, 13, 78);
/* oklch */ color: oklch(28.7% 0.118 319.4);
Tailwind
colors: {
  custom: {
    50: '#795380',
    500: '#420d4e',
    950: '#000000',
  },
}
SCSS
$custom: #420d4e;
$custom-light: #795380;
$custom-dark: #000000;
JSON
{
  "hex": "#420d4e",
  "rgb": {
    "r": 66,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 288.923,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28671,
    "c": 0.11785,
    "h": 319.4
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#420D4E
secondary
#3F892E
accent
#EE3A5B
background
#F7F4F7
surface
#EEE7EE
border
#C9C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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