#420942#420942

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

Color values

HEX#420942
RGBrgb(66, 9, 66)
HSLhsl(300, 76%, 15%)
HSVhsv(300, 86%, 26%)
CMYKcmyk(0%, 86.4%, 0%, 74.1%)
CIE-LABlab(14.10, 33.83, -21.20)
CIE-LCHlch(14.10, 39.92, 327.93°)
OKLaboklab(27.42% 0.0944 -0.0588)
OKLCHoklch(27.42% 0.111 328.1)
XYZxyz(3.3278, 1.7472, 5.3152)
Luminance0.0175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420942 #094209
analogous
#260942 #420942 #420926
triadic
#420942 #424209 #094242
tetradic
#420942 #422609 #094209 #092642
square
#420942 #422609 #094209 #092642
split-complementary
#420942 #264209 #094226
monochromatic
#1B041B #1B041B #420942 #781078 #AE18AE

Accessibility & contrast

On white

15.56
#420942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420942
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420942#FFFFFF#000000##FFFFFF
##4209421.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420942;
/* rgb */ color: rgb(66, 9, 66);
/* oklch */ color: oklch(27.4% 0.111 328.1);
Tailwind
colors: {
  custom: {
    50: '#795076',
    500: '#420942',
    950: '#000000',
  },
}
SCSS
$custom: #420942;
$custom-light: #795076;
$custom-dark: #000000;
JSON
{
  "hex": "#420942",
  "rgb": {
    "r": 66,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.27424,
    "c": 0.11124,
    "h": 328.1
  },
  "luminance": 0.01747
}

Semantic roles & 50–950 ramp

primary
#420942
secondary
#278027
accent
#F33535
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420942

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

Preview Lab → · Contrast checker → · Palette generator →

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