#420D54#420D54

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

Color values

HEX#420D54
RGBrgb(66, 13, 84)
HSLhsl(285, 73%, 19%)
HSVhsv(285, 85%, 33%)
CMYKcmyk(21.4%, 84.5%, 0%, 67.1%)
CIE-LABlab(15.93, 36.14, -30.68)
CIE-LCHlch(15.93, 47.40, 319.67°)
OKLaboklab(29.15% 0.0885 -0.0866)
OKLCHoklch(29.15% 0.124 315.6)
XYZxyz(3.9907, 2.0863, 8.5783)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420D54 #1F540D
analogous
#1F0D54 #420D54 #540D43
triadic
#420D54 #54420D #0D5442
tetradic
#420D54 #541F0D #1F540D #0D4354
square
#420D54 #541F0D #1F540D #0D4354
split-complementary
#420D54 #43540D #0D541F
monochromatic
#15041A #18051F #420D54 #6C1589 #951DBE

Accessibility & contrast

On white

14.82
#420D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420D54
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420D54#FFFFFF#000000##FFFFFF
##420D541.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420d54;
/* rgb */ color: rgb(66, 13, 84);
/* oklch */ color: oklch(29.1% 0.124 315.6);
Tailwind
colors: {
  custom: {
    50: '#795385',
    500: '#420d54',
    950: '#000000',
  },
}
SCSS
$custom: #420d54;
$custom-light: #795385;
$custom-dark: #000000;
JSON
{
  "hex": "#420d54",
  "rgb": {
    "r": 66,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 284.789,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29148,
    "c": 0.12377,
    "h": 315.6
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#420D54
secondary
#478F2E
accent
#F03867
background
#F7F4F8
surface
#EEE8EF
border
#C9C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #420D54

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

Preview Lab → · Contrast checker → · Palette generator →

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