#420740#420740

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

Color values

HEX#420740
RGBrgb(66, 7, 64)
HSLhsl(302, 81%, 14%)
HSVhsv(302, 89%, 26%)
CMYKcmyk(0%, 89.4%, 3%, 74.1%)
CIE-LABlab(13.71, 34.18, -20.40)
CIE-LCHlch(13.71, 39.81, 329.17°)
OKLaboklab(27.11% 0.0966 -0.0565)
OKLCHoklch(27.11% 0.112 329.7)
XYZxyz(3.2481, 1.6806, 5.0028)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420740 #074209
analogous
#270742 #420740 #420723
triadic
#420740 #404207 #074042
tetradic
#420740 #422707 #074209 #072342
square
#420740 #422707 #074209 #072342
split-complementary
#420740 #234207 #074227
monochromatic
#1C031B #1C031B #420740 #790D76 #B113AB

Accessibility & contrast

On white

15.72
#420740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420740
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420740#FFFFFF#000000##FFFFFF
##4207401.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420740;
/* rgb */ color: rgb(66, 7, 64);
/* oklch */ color: oklch(27.1% 0.112 329.7);
Tailwind
colors: {
  custom: {
    50: '#794f75',
    500: '#420740',
    950: '#000000',
  },
}
SCSS
$custom: #420740;
$custom-light: #794f75;
$custom-dark: #000000;
JSON
{
  "hex": "#420740",
  "rgb": {
    "r": 66,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 302.034,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.27105,
    "c": 0.11186,
    "h": 329.7
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#420740
secondary
#248127
accent
#F73731
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420740

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

Preview Lab → · Contrast checker → · Palette generator →

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