#420C51#420C51

#420C51 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.8% C 0.122 H 317.5°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#420C51
RGBrgb(66, 12, 81)
HSLhsl(287, 74%, 18%)
HSVhsv(287, 85%, 32%)
CMYKcmyk(18.5%, 85.2%, 0%, 68.2%)
CIE-LABlab(15.57, 35.84, -29.23)
CIE-LCHlch(15.57, 46.25, 320.80°)
OKLaboklab(28.82% 0.0899 -0.0823)
OKLCHoklch(28.82% 0.122 317.5)
XYZxyz(3.8632, 2.0154, 7.9685)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420C51 #1B510C
analogous
#1F0C51 #420C51 #510C3D
triadic
#420C51 #51420C #0C5142
tetradic
#420C51 #511F0C #1B510C #0C3D51
square
#420C51 #511F0C #1B510C #0C3D51
split-complementary
#420C51 #3D510C #0C511F
monochromatic
#16041B #17041C #420C51 #6D1486 #991CBC

Accessibility & contrast

On white

14.97
#420C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#420C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420C51
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420C51#FFFFFF#000000##FFFFFF
##420C511.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#0E2850
Tritanopia (blue-blind)
#411C2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #420c51;
/* rgb */ color: rgb(66, 12, 81);
/* oklch */ color: oklch(28.8% 0.122 317.5);
Tailwind
colors: {
  custom: {
    50: '#795282',
    500: '#420c51',
    950: '#000000',
  },
}
SCSS
$custom: #420c51;
$custom-light: #795282;
$custom-dark: #000000;
JSON
{
  "hex": "#420c51",
  "rgb": {
    "r": 66,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 286.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28815,
    "c": 0.12191,
    "h": 317.5
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#420C51
secondary
#418C2C
accent
#F1375F
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #420C51

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

Preview Lab → · Contrast checker → · Palette generator →

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