#420F62#420F62

#420F62 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.136 H 307.8°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#420F62
RGBrgb(66, 15, 98)
HSLhsl(277, 73%, 22%)
HSVhsv(277, 85%, 38%)
CMYKcmyk(32.7%, 84.7%, 0%, 61.6%)
CIE-LABlab(17.38, 38.64, -37.73)
CIE-LCHlch(17.38, 54.00, 315.68°)
OKLaboklab(30.53% 0.0833 -0.1073)
OKLCHoklch(30.53% 0.136 307.8)
XYZxyz(4.6217, 2.3818, 11.7692)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F62 #2F620F
analogous
#180F62 #420F62 #620F59
triadic
#420F62 #62420F #0F6242
tetradic
#420F62 #62180F #2F620F #0F5962
square
#420F62 #62180F #2F620F #0F5962
split-complementary
#420F62 #59620F #0F6218
monochromatic
#12041B #1E072D #420F62 #661797 #891FCC

Accessibility & contrast

On white

14.22
#420F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#420F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F62
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F62#FFFFFF#000000##FFFFFF
##420F621.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#3D2539
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #420f62;
/* rgb */ color: rgb(66, 15, 98);
/* oklch */ color: oklch(30.5% 0.136 307.8);
Tailwind
colors: {
  custom: {
    50: '#7a558f',
    500: '#420f62',
    950: '#000000',
  },
}
SCSS
$custom: #420f62;
$custom-light: #7a558f;
$custom-dark: #000000;
JSON
{
  "hex": "#420f62",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 98
  },
  "hsl": {
    "h": 276.867,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30529,
    "c": 0.13583,
    "h": 307.8
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#420F62
secondary
#5A9B32
accent
#F0387F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420F62

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

Preview Lab → · Contrast checker → · Palette generator →

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