#420F5A#420F5A

#420F5A is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.8% C 0.128 H 312.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#420F5A
RGBrgb(66, 15, 90)
HSLhsl(281, 71%, 21%)
HSVhsv(281, 83%, 35%)
CMYKcmyk(26.7%, 83.3%, 0%, 64.7%)
CIE-LABlab(16.69, 36.74, -33.50)
CIE-LCHlch(16.69, 49.72, 317.63°)
OKLaboklab(29.84% 0.0853 -0.0949)
OKLCHoklch(29.84% 0.128 312)
XYZxyz(4.2627, 2.2382, 9.8783)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F5A #275A0F
analogous
#1C0F5A #420F5A #5A0F4C
triadic
#420F5A #5A420F #0F5A42
tetradic
#420F5A #5A1C0F #275A0F #0F4C5A
square
#420F5A #5A1C0F #275A0F #0F4C5A
split-complementary
#420F5A #4C5A0F #0F5A1C
monochromatic
#13041A #1C0626 #420F5A #68188E #8F20C3

Accessibility & contrast

On white

14.51
#420F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #420F5A
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F5A#FFFFFF#000000##FFFFFF
##420F5A1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#032A58
Tritanopia (blue-blind)
#3F2134
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #420f5a;
/* rgb */ color: rgb(66, 15, 90);
/* oklch */ color: oklch(29.8% 0.128 312.0);
Tailwind
colors: {
  custom: {
    50: '#7a5489',
    500: '#420f5a',
    950: '#000000',
  },
}
SCSS
$custom: #420f5a;
$custom-light: #7a5489;
$custom-dark: #000000;
JSON
{
  "hex": "#420f5a",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 280.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29835,
    "c": 0.12759,
    "h": 312
  },
  "luminance": 0.02238
}

Semantic roles & 50–950 ramp

primary
#420F5A
secondary
#519431
accent
#EE3A73
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #420F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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