#420F4F#420F4F

#420F4F is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 318.5°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#420F4F
RGBrgb(66, 15, 79)
HSLhsl(288, 68%, 18%)
HSVhsv(288, 81%, 31%)
CMYKcmyk(16.5%, 81%, 0%, 69%)
CIE-LABlab(15.82, 34.23, -27.45)
CIE-LCHlch(15.82, 43.88, 321.27°)
OKLaboklab(28.95% 0.0872 -0.0771)
OKLCHoklch(28.95% 0.116 318.5)
XYZxyz(3.8287, 2.0646, 7.5925)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F4F #1C4F0F
analogous
#220F4F #420F4F #4F0F3C
triadic
#420F4F #4F420F #0F4F42
tetradic
#420F4F #4F220F #1C4F0F #0F3C4F
square
#420F4F #4F220F #1C4F0F #0F3C4F
split-complementary
#420F4F #3C4F0F #0F4F22
monochromatic
#15051A #17051C #420F4F #6D1982 #9823B6

Accessibility & contrast

On white

14.86
#420F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#420F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F4F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F4F#FFFFFF#000000##FFFFFF
##420F4F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#13294E
Tritanopia (blue-blind)
#421C2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #420f4f;
/* rgb */ color: rgb(66, 15, 79);
/* oklch */ color: oklch(28.9% 0.116 318.5);
Tailwind
colors: {
  custom: {
    50: '#795481',
    500: '#420f4f',
    950: '#000000',
  },
}
SCSS
$custom: #420f4f;
$custom-light: #795481;
$custom-dark: #000000;
JSON
{
  "hex": "#420f4f",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 287.813,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28946,
    "c": 0.1164,
    "h": 318.5
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#420F4F
secondary
#438931
accent
#EB3D60
background
#F7F5F7
surface
#EEE8EE
border
#C9C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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