#420F51#420F51

#420F51 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.118 H 317.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#420F51
RGBrgb(66, 15, 81)
HSLhsl(286, 69%, 19%)
HSVhsv(286, 81%, 32%)
CMYKcmyk(18.5%, 81.5%, 0%, 68.2%)
CIE-LABlab(15.97, 34.68, -28.58)
CIE-LCHlch(15.97, 44.93, 320.51°)
OKLaboklab(29.1% 0.0869 -0.0804)
OKLCHoklch(29.1% 0.118 317.2)
XYZxyz(3.9026, 2.0941, 7.9816)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F51 #1E510F
analogous
#210F51 #420F51 #510F3F
triadic
#420F51 #51420F #0F5142
tetradic
#420F51 #51210F #1E510F #0F3F51
square
#420F51 #51210F #1E510F #0F3F51
split-complementary
#420F51 #3F510F #0F5121
monochromatic
#15051A #18051D #420F51 #6C1985 #9622B8

Accessibility & contrast

On white

14.80
#420F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420F51
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F51#FFFFFF#000000##FFFFFF
##420F511.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420f51;
/* rgb */ color: rgb(66, 15, 81);
/* oklch */ color: oklch(29.1% 0.118 317.2);
Tailwind
colors: {
  custom: {
    50: '#795482',
    500: '#420f51',
    950: '#000000',
  },
}
SCSS
$custom: #420f51;
$custom-light: #795482;
$custom-dark: #000000;
JSON
{
  "hex": "#420f51",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 286.364,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29102,
    "c": 0.11842,
    "h": 317.2
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#420F51
secondary
#458B31
accent
#EC3C64
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420F51

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

Preview Lab → · Contrast checker → · Palette generator →

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