#420C47#420C47

#420C47 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.112 H 324.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#420C47
RGBrgb(66, 12, 71)
HSLhsl(295, 71%, 16%)
HSVhsv(295, 83%, 28%)
CMYKcmyk(7%, 83.1%, 0%, 72.2%)
CIE-LABlab(14.82, 33.73, -23.54)
CIE-LCHlch(14.82, 41.13, 325.09°)
OKLaboklab(28.05% 0.0911 -0.0656)
OKLCHoklch(28.05% 0.112 324.2)
XYZxyz(3.5155, 1.8763, 6.1370)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C47 #11470C
analogous
#250C47 #420C47 #470C2F
triadic
#420C47 #47420C #0C4742
tetradic
#420C47 #47250C #11470C #0C2F47
square
#420C47 #47250C #11470C #0C2F47
split-complementary
#420C47 #2F470C #0C4725
monochromatic
#18041A #18041A #420C47 #73157B #A31EB0

Accessibility & contrast

On white

15.27
#420C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#420C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C47
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C47#FFFFFF#000000##FFFFFF
##420C471.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#172746
Tritanopia (blue-blind)
#431729
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #420c47;
/* rgb */ color: rgb(66, 12, 71);
/* oklch */ color: oklch(28.1% 0.112 324.2);
Tailwind
colors: {
  custom: {
    50: '#79527a',
    500: '#420c47',
    950: '#000000',
  },
}
SCSS
$custom: #420c47;
$custom-light: #79527a;
$custom-dark: #000000;
JSON
{
  "hex": "#420c47",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 294.915,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.28051,
    "c": 0.11231,
    "h": 324.2
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#420C47
secondary
#33832C
accent
#EE3A49
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #420C47

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

Preview Lab → · Contrast checker → · Palette generator →

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