#420F5C#420F5C

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

Color values

HEX#420F5C
RGBrgb(66, 15, 92)
HSLhsl(280, 72%, 21%)
HSVhsv(280, 84%, 36%)
CMYKcmyk(28.3%, 83.7%, 0%, 63.9%)
CIE-LABlab(16.86, 37.21, -34.57)
CIE-LCHlch(16.86, 50.79, 317.10°)
OKLaboklab(30.01% 0.0849 -0.098)
OKLCHoklch(30.01% 0.13 310.9)
XYZxyz(4.3490, 2.2727, 10.3327)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F5C #295C0F
analogous
#1B0F5C #420F5C #5C0F4F
triadic
#420F5C #5C420F #0F5C42
tetradic
#420F5C #5C1B0F #295C0F #0F4F5C
square
#420F5C #5C1B0F #295C0F #0F4F5C
split-complementary
#420F5C #4F5C0F #0F5C1B
monochromatic
#13041A #1C0627 #420F5C #681891 #8D20C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##420F5C#FFFFFF#000000##FFFFFF
##420F5C1.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)
#00275E
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#3E2235
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #420f5c;
/* rgb */ color: rgb(66, 15, 92);
/* oklch */ color: oklch(30.0% 0.130 310.9);
Tailwind
colors: {
  custom: {
    50: '#7a548b',
    500: '#420f5c',
    950: '#000000',
  },
}
SCSS
$custom: #420f5c;
$custom-light: #7a548b;
$custom-dark: #000000;
JSON
{
  "hex": "#420f5c",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 279.74,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30005,
    "c": 0.12964,
    "h": 310.9
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#420F5C
secondary
#539531
accent
#EF3976
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #420F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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