#420C4D#420C4D

#420C4D is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.118 H 320.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#420C4D
RGBrgb(66, 12, 77)
HSLhsl(290, 73%, 17%)
HSVhsv(290, 84%, 30%)
CMYKcmyk(14.3%, 84.4%, 0%, 69.8%)
CIE-LABlab(15.26, 34.98, -26.98)
CIE-LCHlch(15.26, 44.18, 322.35°)
OKLaboklab(28.5% 0.0906 -0.0757)
OKLCHoklch(28.5% 0.118 320.1)
XYZxyz(3.7176, 1.9572, 7.2017)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C4D #174D0C
analogous
#210C4D #420C4D #4D0C38
triadic
#420C4D #4D420C #0C4D42
tetradic
#420C4D #4D210C #174D0C #0C384D
square
#420C4D #4D210C #174D0C #0C384D
split-complementary
#420C4D #384D0C #0C4D21
monochromatic
#17041A #17041A #420C4D #6F1482 #9D1DB7

Accessibility & contrast

On white

15.09
#420C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#420C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C4D
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C4D#FFFFFF#000000##FFFFFF
##420C4D1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#421A2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #420c4d;
/* rgb */ color: rgb(66, 12, 77);
/* oklch */ color: oklch(28.5% 0.118 320.1);
Tailwind
colors: {
  custom: {
    50: '#79527f',
    500: '#420c4d',
    950: '#000000',
  },
}
SCSS
$custom: #420c4d;
$custom-light: #79527f;
$custom-dark: #000000;
JSON
{
  "hex": "#420c4d",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 289.846,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.285,
    "c": 0.11803,
    "h": 320.1
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#420C4D
secondary
#3C892C
accent
#F03857
background
#F7F4F7
surface
#EEE7EE
border
#C9C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #420C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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