#420F56#420F56

#420F56 is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.5% C 0.123 H 314.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#420F56
RGBrgb(66, 15, 86)
HSLhsl(283, 70%, 20%)
HSVhsv(283, 83%, 34%)
CMYKcmyk(23.3%, 82.6%, 0%, 66.3%)
CIE-LABlab(16.36, 35.81, -31.34)
CIE-LCHlch(16.36, 47.59, 318.81°)
OKLaboklab(29.5% 0.0861 -0.0885)
OKLCHoklch(29.5% 0.124 314.2)
XYZxyz(4.0970, 2.1719, 9.0057)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F56 #23560F
analogous
#1F0F56 #420F56 #560F46
triadic
#420F56 #56420F #0F5642
tetradic
#420F56 #561F0F #23560F #0F4656
square
#420F56 #561F0F #23560F #0F4656
split-complementary
#420F56 #46560F #0F561F
monochromatic
#14051A #1A0622 #420F56 #6A188A #9221BE

Accessibility & contrast

On white

14.64
#420F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#420F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F56
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F56#FFFFFF#000000##FFFFFF
##420F561.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#0A2A54
Tritanopia (blue-blind)
#401F32
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #420f56;
/* rgb */ color: rgb(66, 15, 86);
/* oklch */ color: oklch(29.5% 0.123 314.2);
Tailwind
colors: {
  custom: {
    50: '#795486',
    500: '#420f56',
    950: '#000000',
  },
}
SCSS
$custom: #420f56;
$custom-light: #795486;
$custom-dark: #000000;
JSON
{
  "hex": "#420f56",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 283.099,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29502,
    "c": 0.1235,
    "h": 314.2
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#420F56
secondary
#4C9031
accent
#ED3B6D
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #420F56

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

Preview Lab → · Contrast checker → · Palette generator →

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