#420F72#420F72

#420F72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.152 H 300.8°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#420F72
RGBrgb(66, 15, 114)
HSLhsl(271, 77%, 25%)
HSVhsv(271, 87%, 45%)
CMYKcmyk(42.1%, 86.8%, 0%, 55.3%)
CIE-LABlab(18.86, 42.58, -45.77)
CIE-LCHlch(18.86, 62.51, 312.94°)
OKLaboklab(32.02% 0.0781 -0.1309)
OKLCHoklch(32.02% 0.152 300.8)
XYZxyz(5.4541, 2.7148, 16.1530)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F72 #3F720F
analogous
#100F72 #420F72 #720F70
triadic
#420F72 #72420F #0F7242
tetradic
#420F72 #72100F #3F720F #0F7072
square
#420F72 #72100F #3F720F #0F7072
split-complementary
#420F72 #70720F #0F7210
monochromatic
#10041B #23083C #420F72 #6116A8 #811DDE

Accessibility & contrast

On white

13.61
#420F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#420F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F72
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F72#FFFFFF#000000##FFFFFF
##420F721.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#372C42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #420f72;
/* rgb */ color: rgb(66, 15, 114);
/* oklch */ color: oklch(32.0% 0.152 300.8);
Tailwind
colors: {
  custom: {
    50: '#7c569b',
    500: '#420f72',
    950: '#000000',
  },
}
SCSS
$custom: #420f72;
$custom-light: #7c569b;
$custom-dark: #000000;
JSON
{
  "hex": "#420f72",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 270.909,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32021,
    "c": 0.15243,
    "h": 300.8
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#420F72
secondary
#6DAA33
accent
#F33591
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #420F72

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

Preview Lab → · Contrast checker → · Palette generator →

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