#420D5B#420D5B

#420D5B is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.7% C 0.131 H 311.7°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#420D5B
RGBrgb(66, 13, 91)
HSLhsl(281, 75%, 20%)
HSVhsv(281, 86%, 36%)
CMYKcmyk(27.5%, 85.7%, 0%, 64.3%)
CIE-LABlab(16.51, 37.73, -34.47)
CIE-LCHlch(16.51, 51.11, 317.59°)
OKLaboklab(29.74% 0.0869 -0.0977)
OKLCHoklch(29.74% 0.131 311.7)
XYZxyz(4.2787, 2.2015, 10.0951)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420D5B #265B0D
analogous
#1B0D5B #420D5B #5B0D4D
triadic
#420D5B #5B420D #0D5B42
tetradic
#420D5B #5B1B0D #265B0D #0D4D5B
square
#420D5B #5B1B0D #265B0D #0D4D5B
split-complementary
#420D5B #4D5B0D #0D5B1B
monochromatic
#13041B #1B0525 #420D5B #691591 #901CC6

Accessibility & contrast

On white

14.58
#420D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#420D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420D5B
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420D5B#FFFFFF#000000##FFFFFF
##420D5B1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420d5b;
/* rgb */ color: rgb(66, 13, 91);
/* oklch */ color: oklch(29.7% 0.131 311.7);
Tailwind
colors: {
  custom: {
    50: '#7a538a',
    500: '#420d5b',
    950: '#000000',
  },
}
SCSS
$custom: #420d5b;
$custom-light: #7a538a;
$custom-dark: #000000;
JSON
{
  "hex": "#420d5b",
  "rgb": {
    "r": 66,
    "g": 13,
    "b": 91
  },
  "hsl": {
    "h": 280.769,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29735,
    "c": 0.13075,
    "h": 311.7
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#420D5B
secondary
#4F952F
accent
#F23672
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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