#420542#420542

#420542 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.116 H 328.2°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#420542
RGBrgb(66, 5, 66)
HSLhsl(300, 86%, 14%)
HSVhsv(300, 92%, 26%)
CMYKcmyk(0%, 92.4%, 0%, 74.1%)
CIE-LABlab(13.59, 35.30, -22.00)
CIE-LCHlch(13.59, 41.60, 328.06°)
OKLaboklab(27.06% 0.0986 -0.0611)
OKLCHoklch(27.06% 0.116 328.2)
XYZxyz(3.2844, 1.6604, 5.3007)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420542 #054205
analogous
#240542 #420542 #420524
triadic
#420542 #424205 #054242
tetradic
#420542 #422405 #054205 #052442
square
#420542 #422405 #054205 #052442
split-complementary
#420542 #244205 #054224
monochromatic
#1C021C #1C021C #420542 #7B097B #B40EB4

Accessibility & contrast

On white

15.77
#420542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#420542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420542
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420542#FFFFFF#000000##FFFFFF
##4205421.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E44
Deuteranopia (green-blind)
#182541
Tritanopia (blue-blind)
#441024
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #420542;
/* rgb */ color: rgb(66, 5, 66);
/* oklch */ color: oklch(27.1% 0.116 328.2);
Tailwind
colors: {
  custom: {
    50: '#794f77',
    500: '#420542',
    950: '#000000',
  },
}
SCSS
$custom: #420542;
$custom-light: #794f77;
$custom-dark: #000000;
JSON
{
  "hex": "#420542",
  "rgb": {
    "r": 66,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.27064,
    "c": 0.11599,
    "h": 328.2
  },
  "luminance": 0.0166
}

Semantic roles & 50–950 ramp

primary
#420542
secondary
#208220
accent
#FC2C2C
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420542

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

Preview Lab → · Contrast checker → · Palette generator →

#420542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva