#420C56#420C56

#420C56 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.127 H 314.6°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#420C56
RGBrgb(66, 12, 86)
HSLhsl(284, 76%, 19%)
HSVhsv(284, 86%, 34%)
CMYKcmyk(23.3%, 86%, 0%, 66.3%)
CIE-LABlab(15.97, 36.95, -31.98)
CIE-LCHlch(15.97, 48.87, 319.13°)
OKLaboklab(29.22% 0.089 -0.0904)
OKLCHoklch(29.22% 0.127 314.6)
XYZxyz(4.0577, 2.0932, 8.9926)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C56 #20560C
analogous
#1D0C56 #420C56 #560C45
triadic
#420C56 #56420C #0C5642
tetradic
#420C56 #561D0C #20560C #0C4556
square
#420C56 #561D0C #20560C #0C4556
split-complementary
#420C56 #45560C #0C561D
monochromatic
#15041B #190520 #420C56 #6B138C #941BC1

Accessibility & contrast

On white

14.80
#420C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#420C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C56
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C56#FFFFFF#000000##FFFFFF
##420C561.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#062954
Tritanopia (blue-blind)
#401E31
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #420c56;
/* rgb */ color: rgb(66, 12, 86);
/* oklch */ color: oklch(29.2% 0.127 314.6);
Tailwind
colors: {
  custom: {
    50: '#7a5386',
    500: '#420c56',
    950: '#000000',
  },
}
SCSS
$custom: #420c56;
$custom-light: #7a5386;
$custom-dark: #000000;
JSON
{
  "hex": "#420c56",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 86
  },
  "hsl": {
    "h": 283.784,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29224,
    "c": 0.12681,
    "h": 314.6
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#420C56
secondary
#48912D
accent
#F23669
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #420C56

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

Preview Lab → · Contrast checker → · Palette generator →

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