#420642#420642

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

Color values

HEX#420642
RGBrgb(66, 6, 66)
HSLhsl(300, 83%, 14%)
HSVhsv(300, 91%, 26%)
CMYKcmyk(0%, 90.9%, 0%, 74.1%)
CIE-LABlab(13.72, 34.93, -21.80)
CIE-LCHlch(13.72, 41.17, 328.03°)
OKLaboklab(27.16% 0.0975 -0.0605)
OKLCHoklch(27.16% 0.115 328.2)
XYZxyz(3.2952, 1.6821, 5.3043)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420642 #064206
analogous
#240642 #420642 #420624
triadic
#420642 #424206 #064242
tetradic
#420642 #422406 #064206 #062442
square
#420642 #422406 #064206 #062442
split-complementary
#420642 #244206 #064224
monochromatic
#1C031C #1C031C #420642 #7A0B7A #B210B2

Accessibility & contrast

On white

15.71
#420642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420642
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420642#FFFFFF#000000##FFFFFF
##4206421.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420642;
/* rgb */ color: rgb(66, 6, 66);
/* oklch */ color: oklch(27.2% 0.115 328.2);
Tailwind
colors: {
  custom: {
    50: '#794f76',
    500: '#420642',
    950: '#000000',
  },
}
SCSS
$custom: #420642;
$custom-light: #794f76;
$custom-dark: #000000;
JSON
{
  "hex": "#420642",
  "rgb": {
    "r": 66,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.27155,
    "c": 0.11478,
    "h": 328.2
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#420642
secondary
#228222
accent
#FA2E2E
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420642

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

Preview Lab → · Contrast checker → · Palette generator →

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