#420C50#420C50

#420C50 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.7% C 0.121 H 318.2°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#420C50
RGBrgb(66, 12, 80)
HSLhsl(288, 74%, 18%)
HSVhsv(288, 85%, 31%)
CMYKcmyk(17.5%, 85%, 0%, 68.6%)
CIE-LABlab(15.49, 35.62, -28.67)
CIE-LCHlch(15.49, 45.73, 321.17°)
OKLaboklab(28.74% 0.0901 -0.0807)
OKLCHoklch(28.74% 0.121 318.2)
XYZxyz(3.8260, 2.0006, 7.7725)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C50 #1A500C
analogous
#200C50 #420C50 #500C3C
triadic
#420C50 #50420C #0C5042
tetradic
#420C50 #50200C #1A500C #0C3C50
square
#420C50 #50200C #1A500C #0C3C50
split-complementary
#420C50 #3C500C #0C5020
monochromatic
#16041B #16041B #420C50 #6E1485 #9A1CBA

Accessibility & contrast

On white

15.00
#420C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#420C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C50
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C50#FFFFFF#000000##FFFFFF
##420C501.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#0F284F
Tritanopia (blue-blind)
#421B2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #420c50;
/* rgb */ color: rgb(66, 12, 80);
/* oklch */ color: oklch(28.7% 0.121 318.2);
Tailwind
colors: {
  custom: {
    50: '#795281',
    500: '#420c50',
    950: '#000000',
  },
}
SCSS
$custom: #420c50;
$custom-light: #795281;
$custom-dark: #000000;
JSON
{
  "hex": "#420c50",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 287.647,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28735,
    "c": 0.12094,
    "h": 318.2
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#420C50
secondary
#408B2C
accent
#F1375D
background
#F7F4F7
surface
#EEE7EE
border
#C9C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420C50

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

Preview Lab → · Contrast checker → · Palette generator →

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