#420E5B#420E5B

#420E5B is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.8% C 0.130 H 311.5°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#420E5B
RGBrgb(66, 14, 91)
HSLhsl(281, 73%, 21%)
HSVhsv(281, 85%, 36%)
CMYKcmyk(27.5%, 84.6%, 0%, 64.3%)
CIE-LABlab(16.64, 37.36, -34.26)
CIE-LCHlch(16.64, 50.69, 317.48°)
OKLaboklab(29.83% 0.086 -0.0971)
OKLCHoklch(29.83% 0.13 311.5)
XYZxyz(4.2918, 2.2278, 10.0994)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420E5B #275B0E
analogous
#1B0E5B #420E5B #5B0E4D
triadic
#420E5B #5B420E #0E5B42
tetradic
#420E5B #5B1B0E #275B0E #0E4D5B
square
#420E5B #5B1B0E #275B0E #0E4D5B
split-complementary
#420E5B #4D5B0E #0E5B1B
monochromatic
#13041B #1C0626 #420E5B #681690 #8F1EC5

Accessibility & contrast

On white

14.53
#420E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420E5B
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420E5B#FFFFFF#000000##FFFFFF
##420E5B1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420e5b;
/* rgb */ color: rgb(66, 14, 91);
/* oklch */ color: oklch(29.8% 0.130 311.5);
Tailwind
colors: {
  custom: {
    50: '#7a548a',
    500: '#420e5b',
    950: '#000000',
  },
}
SCSS
$custom: #420e5b;
$custom-light: #7a548a;
$custom-dark: #000000;
JSON
{
  "hex": "#420e5b",
  "rgb": {
    "r": 66,
    "g": 14,
    "b": 91
  },
  "hsl": {
    "h": 280.519,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29825,
    "c": 0.12971,
    "h": 311.5
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#420E5B
secondary
#519530
accent
#F03874
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #420E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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