#420C40#420C40

#420C40 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.106 H 329.6°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#420C40
RGBrgb(66, 12, 64)
HSLhsl(302, 69%, 15%)
HSVhsv(302, 82%, 26%)
CMYKcmyk(0%, 81.8%, 3%, 74.1%)
CIE-LABlab(14.35, 32.34, -19.39)
CIE-LCHlch(14.35, 37.71, 329.06°)
OKLaboklab(27.56% 0.0913 -0.0536)
OKLCHoklch(27.56% 0.106 329.6)
XYZxyz(3.3036, 1.7916, 5.0213)
Luminance0.0179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C40 #0C420E
analogous
#290C42 #420C40 #420C25
triadic
#420C40 #40420C #0C4042
tetradic
#420C40 #42290C #0C420E #0C2542
square
#420C40 #42290C #0C420E #0C2542
split-complementary
#420C40 #25420C #0C4229
monochromatic
#1A0519 #1A0519 #420C40 #761572 #AA1FA4

Accessibility & contrast

On white

15.46
#420C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420C40
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C40#FFFFFF#000000##FFFFFF
##420C401.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052041
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#451325
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #420c40;
/* rgb */ color: rgb(66, 12, 64);
/* oklch */ color: oklch(27.6% 0.106 329.6);
Tailwind
colors: {
  custom: {
    50: '#795175',
    500: '#420c40',
    950: '#000000',
  },
}
SCSS
$custom: #420c40;
$custom-light: #795175;
$custom-dark: #000000;
JSON
{
  "hex": "#420c40",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 302.222,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27562,
    "c": 0.10585,
    "h": 329.6
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#420C40
secondary
#2C7E2F
accent
#EC423C
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420C40

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

Preview Lab → · Contrast checker → · Palette generator →

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