#420F5E#420F5E

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

Color values

HEX#420F5E
RGBrgb(66, 15, 94)
HSLhsl(279, 72%, 21%)
HSVhsv(279, 84%, 37%)
CMYKcmyk(29.8%, 84%, 0%, 63.1%)
CIE-LABlab(17.03, 37.68, -35.63)
CIE-LCHlch(17.03, 51.86, 316.60°)
OKLaboklab(30.18% 0.0844 -0.1011)
OKLCHoklch(30.18% 0.132 309.8)
XYZxyz(4.4376, 2.3081, 10.7993)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F5E #2B5E0F
analogous
#1B0F5E #420F5E #5E0F53
triadic
#420F5E #5E420F #0F5E42
tetradic
#420F5E #5E1B0F #2B5E0F #0F535E
square
#420F5E #5E1B0F #2B5E0F #0F535E
split-complementary
#420F5E #535E0F #0F5E1B
monochromatic
#13041A #1D0729 #420F5E #671793 #8C20C8

Accessibility & contrast

On white

14.37
#420F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420F5E
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F5E#FFFFFF#000000##FFFFFF
##420F5E1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #420f5e;
/* rgb */ color: rgb(66, 15, 94);
/* oklch */ color: oklch(30.2% 0.132 309.8);
Tailwind
colors: {
  custom: {
    50: '#7a548c',
    500: '#420f5e',
    950: '#000000',
  },
}
SCSS
$custom: #420f5e;
$custom-light: #7a548c;
$custom-dark: #000000;
JSON
{
  "hex": "#420f5e",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 278.734,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30177,
    "c": 0.1317,
    "h": 309.8
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#420F5E
secondary
#569731
accent
#EF3979
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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