#420842#420842

#420842 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.3% C 0.112 H 328.1°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#420842
RGBrgb(66, 8, 66)
HSLhsl(300, 78%, 15%)
HSVhsv(300, 88%, 26%)
CMYKcmyk(0%, 87.9%, 0%, 74.1%)
CIE-LABlab(13.98, 34.19, -21.40)
CIE-LCHlch(13.98, 40.33, 327.96°)
OKLaboklab(27.33% 0.0954 -0.0594)
OKLCHoklch(27.33% 0.112 328.1)
XYZxyz(3.3169, 1.7255, 5.3116)
Luminance0.0173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420842 #084208
analogous
#250842 #420842 #420825
triadic
#420842 #424208 #084242
tetradic
#420842 #422508 #084208 #082542
square
#420842 #422508 #084208 #082542
split-complementary
#420842 #254208 #084225
monochromatic
#1B031B #1B031B #420842 #790F79 #AF15AF

Accessibility & contrast

On white

15.61
#420842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#420842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420842
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420842#FFFFFF#000000##FFFFFF
##4208421.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#192641
Tritanopia (blue-blind)
#441225
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #420842;
/* rgb */ color: rgb(66, 8, 66);
/* oklch */ color: oklch(27.3% 0.112 328.1);
Tailwind
colors: {
  custom: {
    50: '#795076',
    500: '#420842',
    950: '#000000',
  },
}
SCSS
$custom: #420842;
$custom-light: #795076;
$custom-dark: #000000;
JSON
{
  "hex": "#420842",
  "rgb": {
    "r": 66,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.27335,
    "c": 0.1124,
    "h": 328.1
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#420842
secondary
#258025
accent
#F53333
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420842

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

Preview Lab → · Contrast checker → · Palette generator →

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