#420F5D#420F5D

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

Color values

HEX#420F5D
RGBrgb(66, 15, 93)
HSLhsl(279, 72%, 21%)
HSVhsv(279, 84%, 36%)
CMYKcmyk(29%, 83.9%, 0%, 63.5%)
CIE-LABlab(16.94, 37.44, -35.10)
CIE-LCHlch(16.94, 51.33, 316.85°)
OKLaboklab(30.09% 0.0846 -0.0996)
OKLCHoklch(30.09% 0.131 310.4)
XYZxyz(4.3930, 2.2903, 10.5645)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F5D #2A5D0F
analogous
#1B0F5D #420F5D #5D0F51
triadic
#420F5D #5D420F #0F5D42
tetradic
#420F5D #5D1B0F #2A5D0F #0F515D
square
#420F5D #5D1B0F #2A5D0F #0F515D
split-complementary
#420F5D #515D0F #0F5D1B
monochromatic
#13041A #1D0628 #420F5D #671792 #8D20C6

Accessibility & contrast

On white

14.40
#420F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#420F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F5D
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F5D#FFFFFF#000000##FFFFFF
##420F5D1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3E2236
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #420f5d;
/* rgb */ color: rgb(66, 15, 93);
/* oklch */ color: oklch(30.1% 0.131 310.4);
Tailwind
colors: {
  custom: {
    50: '#7a548b',
    500: '#420f5d',
    950: '#000000',
  },
}
SCSS
$custom: #420f5d;
$custom-light: #7a548b;
$custom-dark: #000000;
JSON
{
  "hex": "#420f5d",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 279.231,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30091,
    "c": 0.13067,
    "h": 310.4
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#420F5D
secondary
#549631
accent
#EF3978
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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