#420F40#420F40

#420F40 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.102 H 329.5°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#420F40
RGBrgb(66, 15, 64)
HSLhsl(302, 63%, 16%)
HSVhsv(302, 77%, 26%)
CMYKcmyk(0%, 77.3%, 3%, 74.1%)
CIE-LABlab(14.79, 31.10, -18.70)
CIE-LCHlch(14.79, 36.29, 328.99°)
OKLaboklab(27.88% 0.0877 -0.0516)
OKLCHoklch(27.88% 0.102 329.5)
XYZxyz(3.3430, 1.8703, 5.0344)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F40 #0F4211
analogous
#2A0F42 #420F40 #420F26
triadic
#420F40 #40420F #0F4042
tetradic
#420F40 #422A0F #0F4211 #0F2642
square
#420F40 #422A0F #0F4211 #0F2642
split-complementary
#420F40 #26420F #0F422A
monochromatic
#190618 #190618 #420F40 #741A70 #A626A1

Accessibility & contrast

On white

15.28
#420F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#420F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F40
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F40#FFFFFF#000000##FFFFFF
##420F401.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#451526
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #420f40;
/* rgb */ color: rgb(66, 15, 64);
/* oklch */ color: oklch(27.9% 0.102 329.5);
Tailwind
colors: {
  custom: {
    50: '#795375',
    500: '#420f40',
    950: '#000000',
  },
}
SCSS
$custom: #420f40;
$custom-light: #795375;
$custom-dark: #000000;
JSON
{
  "hex": "#420f40",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 302.353,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27877,
    "c": 0.10178,
    "h": 329.5
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#420F40
secondary
#307C33
accent
#E64842
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #420F40

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

Preview Lab → · Contrast checker → · Palette generator →

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