#420E5F#420E5F

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

Color values

HEX#420E5F
RGBrgb(66, 14, 95)
HSLhsl(279, 74%, 21%)
HSVhsv(279, 85%, 37%)
CMYKcmyk(30.5%, 85.3%, 0%, 62.7%)
CIE-LABlab(16.98, 38.30, -36.37)
CIE-LCHlch(16.98, 52.82, 316.48°)
OKLaboklab(30.17% 0.085 -0.1033)
OKLCHoklch(30.17% 0.134 309.5)
XYZxyz(4.4689, 2.2986, 11.0325)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420E5F #2B5F0E
analogous
#1A0E5F #420E5F #5F0E54
triadic
#420E5F #5F420E #0E5F42
tetradic
#420E5F #5F1A0E #2B5F0E #0E545F
square
#420E5F #5F1A0E #2B5F0E #0E545F
split-complementary
#420E5F #545F0E #0E5F1A
monochromatic
#13041B #1D062A #420E5F #671694 #8C1ECA

Accessibility & contrast

On white

14.39
#420E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420E5F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420E5F#FFFFFF#000000##FFFFFF
##420E5F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420e5f;
/* rgb */ color: rgb(66, 14, 95);
/* oklch */ color: oklch(30.2% 0.134 309.5);
Tailwind
colors: {
  custom: {
    50: '#7a548d',
    500: '#420e5f',
    950: '#000000',
  },
}
SCSS
$custom: #420e5f;
$custom-light: #7a548d;
$custom-dark: #000000;
JSON
{
  "hex": "#420e5f",
  "rgb": {
    "r": 66,
    "g": 14,
    "b": 95
  },
  "hsl": {
    "h": 278.519,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30172,
    "c": 0.13377,
    "h": 309.5
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#420E5F
secondary
#569930
accent
#F13779
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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