#420F64#420F64

#420F64 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.138 H 306.9°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#420F64
RGBrgb(66, 15, 100)
HSLhsl(276, 74%, 23%)
HSVhsv(276, 85%, 39%)
CMYKcmyk(34%, 85%, 0%, 60.8%)
CIE-LABlab(17.55, 39.12, -38.76)
CIE-LCHlch(17.55, 55.07, 315.27°)
OKLaboklab(30.71% 0.0827 -0.1103)
OKLCHoklch(30.71% 0.138 306.9)
XYZxyz(4.7173, 2.4201, 12.2727)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F64 #31640F
analogous
#170F64 #420F64 #640F5B
triadic
#420F64 #64420F #0F6442
tetradic
#420F64 #64170F #31640F #0F5B64
square
#420F64 #64170F #31640F #0F5B64
split-complementary
#420F64 #5B640F #0F6417
monochromatic
#12041B #1F072F #420F64 #651799 #881FCE

Accessibility & contrast

On white

14.15
#420F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420F64
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F64#FFFFFF#000000##FFFFFF
##420F641.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#3C263A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #420f64;
/* rgb */ color: rgb(66, 15, 100);
/* oklch */ color: oklch(30.7% 0.138 306.9);
Tailwind
colors: {
  custom: {
    50: '#7b5591',
    500: '#420f64',
    950: '#000000',
  },
}
SCSS
$custom: #420f64;
$custom-light: #7b5591;
$custom-dark: #000000;
JSON
{
  "hex": "#420f64",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 100
  },
  "hsl": {
    "h": 276,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30708,
    "c": 0.1379,
    "h": 306.9
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#420F64
secondary
#5D9D32
accent
#F13781
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #420F64

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

Preview Lab → · Contrast checker → · Palette generator →

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