#420C42#420C42

#420C42 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.108 H 328.0°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#420C42
RGBrgb(66, 12, 66)
HSLhsl(300, 69%, 15%)
HSVhsv(300, 82%, 26%)
CMYKcmyk(0%, 81.8%, 0%, 74.1%)
CIE-LABlab(14.48, 32.73, -20.59)
CIE-LCHlch(14.48, 38.67, 327.83°)
OKLaboklab(27.7% 0.0913 -0.057)
OKLCHoklch(27.7% 0.108 328)
XYZxyz(3.3616, 1.8148, 5.3264)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C42 #0C420C
analogous
#270C42 #420C42 #420C27
triadic
#420C42 #42420C #0C4242
tetradic
#420C42 #42270C #0C420C #0C2742
square
#420C42 #42270C #0C420C #0C2742
split-complementary
#420C42 #27420C #0C4227
monochromatic
#1A051A #1A051A #420C42 #761576 #AA1FAA

Accessibility & contrast

On white

15.41
#420C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#420C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C42
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C42#FFFFFF#000000##FFFFFF
##420C421.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032043
Deuteranopia (green-blind)
#1B2741
Tritanopia (blue-blind)
#441426
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #420c42;
/* rgb */ color: rgb(66, 12, 66);
/* oklch */ color: oklch(27.7% 0.108 328.0);
Tailwind
colors: {
  custom: {
    50: '#795276',
    500: '#420c42',
    950: '#000000',
  },
}
SCSS
$custom: #420c42;
$custom-light: #795276;
$custom-dark: #000000;
JSON
{
  "hex": "#420c42",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27698,
    "c": 0.10766,
    "h": 328
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#420C42
secondary
#2C7E2C
accent
#EC3C3C
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420C42

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

Preview Lab → · Contrast checker → · Palette generator →

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