#420D5F#420D5F

#420D5F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.135 H 309.6°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#420D5F
RGBrgb(66, 13, 95)
HSLhsl(279, 76%, 21%)
HSVhsv(279, 86%, 37%)
CMYKcmyk(30.5%, 86.3%, 0%, 62.7%)
CIE-LABlab(16.86, 38.67, -36.58)
CIE-LCHlch(16.86, 53.23, 316.59°)
OKLaboklab(30.08% 0.0859 -0.1039)
OKLCHoklch(30.08% 0.135 309.6)
XYZxyz(4.4558, 2.2724, 11.0281)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420D5F #2A5F0D
analogous
#190D5F #420D5F #5F0D53
triadic
#420D5F #5F420D #0D5F42
tetradic
#420D5F #5F190D #2A5F0D #0D535F
square
#420D5F #5F190D #2A5F0D #0D535F
split-complementary
#420D5F #535F0D #0D5F19
monochromatic
#13041B #1D0629 #420D5F #671495 #8D1CCB

Accessibility & contrast

On white

14.44
#420D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420D5F
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420D5F#FFFFFF#000000##FFFFFF
##420D5F1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#3E2237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #420d5f;
/* rgb */ color: rgb(66, 13, 95);
/* oklch */ color: oklch(30.1% 0.135 309.6);
Tailwind
colors: {
  custom: {
    50: '#7a548d',
    500: '#420d5f',
    950: '#000000',
  },
}
SCSS
$custom: #420d5f;
$custom-light: #7a548d;
$custom-dark: #000000;
JSON
{
  "hex": "#420d5f",
  "rgb": {
    "r": 66,
    "g": 13,
    "b": 95
  },
  "hsl": {
    "h": 278.78,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30084,
    "c": 0.13478,
    "h": 309.6
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#420D5F
secondary
#54992F
accent
#F33578
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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