#420F5B#420F5B

#420F5B is a dark, vivid purple. Relative luminance 0.023; OKLCH L 29.9% C 0.129 H 311.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#420F5B
RGBrgb(66, 15, 91)
HSLhsl(280, 72%, 21%)
HSVhsv(280, 84%, 36%)
CMYKcmyk(27.5%, 83.5%, 0%, 64.3%)
CIE-LABlab(16.77, 36.97, -34.04)
CIE-LCHlch(16.77, 50.26, 317.36°)
OKLaboklab(29.92% 0.0851 -0.0964)
OKLCHoklch(29.92% 0.129 311.4)
XYZxyz(4.3056, 2.2553, 10.1040)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F5B #285B0F
analogous
#1C0F5B #420F5B #5B0F4E
triadic
#420F5B #5B420F #0F5B42
tetradic
#420F5B #5B1C0F #285B0F #0F4E5B
square
#420F5B #5B1C0F #285B0F #0F4E5B
split-complementary
#420F5B #4E5B0F #0F5B1C
monochromatic
#13041A #1C0626 #420F5B #681890 #8E20C4

Accessibility & contrast

On white

14.47
#420F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#420F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F5B
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F5B#FFFFFF#000000##FFFFFF
##420F5B1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#012A59
Tritanopia (blue-blind)
#3F2235
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #420f5b;
/* rgb */ color: rgb(66, 15, 91);
/* oklch */ color: oklch(29.9% 0.129 311.4);
Tailwind
colors: {
  custom: {
    50: '#7a548a',
    500: '#420f5b',
    950: '#000000',
  },
}
SCSS
$custom: #420f5b;
$custom-light: #7a548a;
$custom-dark: #000000;
JSON
{
  "hex": "#420f5b",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 280.263,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29919,
    "c": 0.12862,
    "h": 311.4
  },
  "luminance": 0.02255
}

Semantic roles & 50–950 ramp

primary
#420F5B
secondary
#529531
accent
#EE3975
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #420F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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