#420F58#420F58

#420F58 is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.7% C 0.126 H 313.1°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#420F58
RGBrgb(66, 15, 88)
HSLhsl(282, 71%, 20%)
HSVhsv(282, 83%, 35%)
CMYKcmyk(25%, 83%, 0%, 65.5%)
CIE-LABlab(16.53, 36.27, -32.43)
CIE-LCHlch(16.53, 48.65, 318.20°)
OKLaboklab(29.67% 0.0857 -0.0917)
OKLCHoklch(29.67% 0.126 313.1)
XYZxyz(4.1787, 2.2046, 9.4360)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F58 #25580F
analogous
#1E0F58 #420F58 #580F49
triadic
#420F58 #58420F #0F5842
tetradic
#420F58 #581E0F #25580F #0F4958
square
#420F58 #581E0F #25580F #0F4958
split-complementary
#420F58 #49580F #0F581E
monochromatic
#14041A #1B0624 #420F58 #69188C #9021C1

Accessibility & contrast

On white

14.58
#420F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#420F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F58
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F58#FFFFFF#000000##FFFFFF
##420F581.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#062A56
Tritanopia (blue-blind)
#402033
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #420f58;
/* rgb */ color: rgb(66, 15, 88);
/* oklch */ color: oklch(29.7% 0.126 313.1);
Tailwind
colors: {
  custom: {
    50: '#7a5488',
    500: '#420f58',
    950: '#000000',
  },
}
SCSS
$custom: #420f58;
$custom-light: #7a5488;
$custom-dark: #000000;
JSON
{
  "hex": "#420f58",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 281.918,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29667,
    "c": 0.12554,
    "h": 313.1
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#420F58
secondary
#4E9231
accent
#EE3A70
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #420F58

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

Preview Lab → · Contrast checker → · Palette generator →

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