#420F76#420F76

#420F76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.157 H 299.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#420F76
RGBrgb(66, 15, 118)
HSLhsl(270, 77%, 26%)
HSVhsv(270, 87%, 46%)
CMYKcmyk(44.1%, 87.3%, 0%, 53.7%)
CIE-LABlab(19.26, 43.59, -47.70)
CIE-LCHlch(19.26, 64.62, 312.42°)
OKLaboklab(32.41% 0.0766 -0.1366)
OKLCHoklch(32.41% 0.157 299.3)
XYZxyz(5.6868, 2.8078, 17.3784)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F76 #43760F
analogous
#0F0F76 #420F76 #750F76
triadic
#420F76 #76420F #0F7642
tetradic
#420F76 #760F0F #43760F #0F7675
square
#420F76 #760F0F #43760F #0F7675
split-complementary
#420F76 #76750F #0F760F
monochromatic
#0F031B #240840 #420F76 #6016AC #7F1DE2

Accessibility & contrast

On white

13.45
#420F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#420F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F76
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F76#FFFFFF#000000##FFFFFF
##420F761.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#352E44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #420f76;
/* rgb */ color: rgb(66, 15, 118);
/* oklch */ color: oklch(32.4% 0.157 299.3);
Tailwind
colors: {
  custom: {
    50: '#7d569e',
    500: '#420f76',
    950: '#000000',
  },
}
SCSS
$custom: #420f76;
$custom-light: #7d569e;
$custom-dark: #000000;
JSON
{
  "hex": "#420f76",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 269.709,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.1566,
    "h": 299.3
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#420F76
secondary
#71AD33
accent
#F43495
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #420F76

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

Preview Lab → · Contrast checker → · Palette generator →

#420F76 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva