#420C4C#420C4C

#420C4C is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.4% C 0.117 H 320.8°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#420C4C
RGBrgb(66, 12, 76)
HSLhsl(291, 73%, 17%)
HSVhsv(291, 84%, 30%)
CMYKcmyk(13.2%, 84.2%, 0%, 70.2%)
CIE-LABlab(15.19, 34.77, -26.42)
CIE-LCHlch(15.19, 43.66, 322.77°)
OKLaboklab(28.42% 0.0907 -0.074)
OKLCHoklch(28.42% 0.117 320.8)
XYZxyz(3.6826, 1.9432, 7.0172)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C4C #164C0C
analogous
#220C4C #420C4C #4C0C36
triadic
#420C4C #4C420C #0C4C42
tetradic
#420C4C #4C220C #164C0C #0C364C
square
#420C4C #4C220C #164C0C #0C364C
split-complementary
#420C4C #364C0C #0C4C22
monochromatic
#17041A #17041A #420C4C #701481 #9E1DB6

Accessibility & contrast

On white

15.12
#420C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420C4C
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C4C#FFFFFF#000000##FFFFFF
##420C4C1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#13284B
Tritanopia (blue-blind)
#42192C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #420c4c;
/* rgb */ color: rgb(66, 12, 76);
/* oklch */ color: oklch(28.4% 0.117 320.8);
Tailwind
colors: {
  custom: {
    50: '#79527e',
    500: '#420c4c',
    950: '#000000',
  },
}
SCSS
$custom: #420c4c;
$custom-light: #79527e;
$custom-dark: #000000;
JSON
{
  "hex": "#420c4c",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 290.625,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28423,
    "c": 0.11707,
    "h": 320.8
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#420C4C
secondary
#3A882C
accent
#EF3855
background
#F7F4F7
surface
#EEE7EE
border
#C9C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #420C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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