#420D5E#420D5E

#420D5E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 310.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#420D5E
RGBrgb(66, 13, 94)
HSLhsl(279, 76%, 21%)
HSVhsv(279, 86%, 37%)
CMYKcmyk(29.8%, 86.2%, 0%, 63.1%)
CIE-LABlab(16.77, 38.43, -36.05)
CIE-LCHlch(16.77, 52.70, 316.83°)
OKLaboklab(30% 0.0861 -0.1023)
OKLCHoklch(30% 0.134 310.1)
XYZxyz(4.4107, 2.2543, 10.7903)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420D5E #295E0D
analogous
#190D5E #420D5E #5E0D51
triadic
#420D5E #5E420D #0D5E42
tetradic
#420D5E #5E190D #295E0D #0D515E
square
#420D5E #5E190D #295E0D #0D515E
split-complementary
#420D5E #515E0D #0D5E19
monochromatic
#13041B #1C0628 #420D5E #681494 #8D1CCA

Accessibility & contrast

On white

14.47
#420D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#420D5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420D5E
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420D5E#FFFFFF#000000##FFFFFF
##420D5E1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#3E2236
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #420d5e;
/* rgb */ color: rgb(66, 13, 94);
/* oklch */ color: oklch(30.0% 0.134 310.1);
Tailwind
colors: {
  custom: {
    50: '#7a548c',
    500: '#420d5e',
    950: '#000000',
  },
}
SCSS
$custom: #420d5e;
$custom-light: #7a548c;
$custom-dark: #000000;
JSON
{
  "hex": "#420d5e",
  "rgb": {
    "r": 66,
    "g": 13,
    "b": 94
  },
  "hsl": {
    "h": 279.259,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29996,
    "c": 0.13377,
    "h": 310.1
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#420D5E
secondary
#53982F
accent
#F23677
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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