#420742#420742

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

Color values

HEX#420742
RGBrgb(66, 7, 66)
HSLhsl(300, 81%, 14%)
HSVhsv(300, 89%, 26%)
CMYKcmyk(0%, 89.4%, 0%, 74.1%)
CIE-LABlab(13.85, 34.56, -21.60)
CIE-LCHlch(13.85, 40.75, 328.00°)
OKLaboklab(27.25% 0.0965 -0.0599)
OKLCHoklch(27.25% 0.114 328.2)
XYZxyz(3.3061, 1.7038, 5.3079)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420742 #074207
analogous
#250742 #420742 #420725
triadic
#420742 #424207 #074242
tetradic
#420742 #422507 #074207 #072542
square
#420742 #422507 #074207 #072542
split-complementary
#420742 #254207 #074225
monochromatic
#1C031C #1C031C #420742 #790D79 #B113B1

Accessibility & contrast

On white

15.66
#420742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420742
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420742#FFFFFF#000000##FFFFFF
##4207421.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.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: #420742;
/* rgb */ color: rgb(66, 7, 66);
/* oklch */ color: oklch(27.2% 0.114 328.2);
Tailwind
colors: {
  custom: {
    50: '#795076',
    500: '#420742',
    950: '#000000',
  },
}
SCSS
$custom: #420742;
$custom-light: #795076;
$custom-dark: #000000;
JSON
{
  "hex": "#420742",
  "rgb": {
    "r": 66,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.27246,
    "c": 0.11358,
    "h": 328.2
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#420742
secondary
#248124
accent
#F73131
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420742

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

Preview Lab → · Contrast checker → · Palette generator →

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