#420840#420840

#420840 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.111 H 329.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#420840
RGBrgb(66, 8, 64)
HSLhsl(302, 78%, 15%)
HSVhsv(302, 88%, 26%)
CMYKcmyk(0%, 87.9%, 3%, 74.1%)
CIE-LABlab(13.84, 33.82, -20.20)
CIE-LCHlch(13.84, 39.39, 329.15°)
OKLaboklab(27.2% 0.0955 -0.0559)
OKLCHoklch(27.2% 0.111 329.7)
XYZxyz(3.2590, 1.7023, 5.0064)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420840 #08420A
analogous
#270842 #420840 #420823
triadic
#420840 #404208 #084042
tetradic
#420840 #422708 #08420A #082342
square
#420840 #422708 #08420A #082342
split-complementary
#420840 #234208 #084227
monochromatic
#1B031A #1B031A #420840 #790F75 #AF15AA

Accessibility & contrast

On white

15.67
#420840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#420840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420840
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420840#FFFFFF#000000##FFFFFF
##4208401.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#1A263F
Tritanopia (blue-blind)
#451124
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #420840;
/* rgb */ color: rgb(66, 8, 64);
/* oklch */ color: oklch(27.2% 0.111 329.7);
Tailwind
colors: {
  custom: {
    50: '#795075',
    500: '#420840',
    950: '#000000',
  },
}
SCSS
$custom: #420840;
$custom-light: #795075;
$custom-dark: #000000;
JSON
{
  "hex": "#420840",
  "rgb": {
    "r": 66,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 302.069,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.27196,
    "c": 0.11066,
    "h": 329.7
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#420840
secondary
#258029
accent
#F53A33
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420840

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

Preview Lab → · Contrast checker → · Palette generator →

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