#420F52#420F52

#420F52 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.2% C 0.119 H 316.6°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#420F52
RGBrgb(66, 15, 82)
HSLhsl(286, 69%, 19%)
HSVhsv(286, 82%, 32%)
CMYKcmyk(19.5%, 81.7%, 0%, 67.8%)
CIE-LABlab(16.05, 34.90, -29.13)
CIE-LCHlch(16.05, 45.46, 320.15°)
OKLaboklab(29.18% 0.0868 -0.082)
OKLCHoklch(29.18% 0.119 316.6)
XYZxyz(3.9403, 2.1093, 8.1806)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F52 #1F520F
analogous
#210F52 #420F52 #520F41
triadic
#420F52 #52420F #0F5242
tetradic
#420F52 #52210F #1F520F #0F4152
square
#420F52 #52210F #1F520F #0F4152
split-complementary
#420F52 #41520F #0F5221
monochromatic
#15051A #18061E #420F52 #6C1886 #9522B9

Accessibility & contrast

On white

14.77
#420F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420F52
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F52#FFFFFF#000000##FFFFFF
##420F521.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#411D30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #420f52;
/* rgb */ color: rgb(66, 15, 82);
/* oklch */ color: oklch(29.2% 0.119 316.6);
Tailwind
colors: {
  custom: {
    50: '#795483',
    500: '#420f52',
    950: '#000000',
  },
}
SCSS
$custom: #420f52;
$custom-light: #795483;
$custom-dark: #000000;
JSON
{
  "hex": "#420f52",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 285.672,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2918,
    "c": 0.11944,
    "h": 316.6
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#420F52
secondary
#478C31
accent
#EC3C66
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420F52

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

Preview Lab → · Contrast checker → · Palette generator →

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