#420538#420538

#420538 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.108 H 336.2°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#420538
RGBrgb(66, 5, 56)
HSLhsl(310, 86%, 14%)
HSVhsv(310, 92%, 26%)
CMYKcmyk(0%, 92.4%, 15.2%, 74.1%)
CIE-LABlab(12.94, 33.54, -15.93)
CIE-LCHlch(12.94, 37.13, 334.60°)
OKLaboklab(26.39% 0.0987 -0.0435)
OKLCHoklch(26.39% 0.108 336.2)
XYZxyz(3.0149, 1.5526, 3.8815)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420538 #05420F
analogous
#2E0542 #420538 #42051A
triadic
#420538 #384205 #053842
tetradic
#420538 #422E05 #05420F #051A42
square
#420538 #422E05 #05420F #051A42
split-complementary
#420538 #1A4205 #05422E
monochromatic
#1C0218 #1C0218 #420538 #7B0968 #B40E99

Accessibility & contrast

On white

16.03
#420538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#420538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420538
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420538#FFFFFF#000000##FFFFFF
##4205381.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061C39
Deuteranopia (green-blind)
#1D2537
Tritanopia (blue-blind)
#460A1E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #420538;
/* rgb */ color: rgb(66, 5, 56);
/* oklch */ color: oklch(26.4% 0.108 336.2);
Tailwind
colors: {
  custom: {
    50: '#794e6e',
    500: '#420538',
    950: '#000000',
  },
}
SCSS
$custom: #420538;
$custom-light: #794e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#420538",
  "rgb": {
    "r": 66,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 309.836,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26388,
    "c": 0.10783,
    "h": 336.2
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#420538
secondary
#208230
accent
#FC4E2C
background
#F7F4F6
surface
#EEE7EC
border
#C9C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #420538

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

Preview Lab → · Contrast checker → · Palette generator →

#420538 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva