#420540#420540

#420540 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.9% C 0.114 H 329.7°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#420540
RGBrgb(66, 5, 64)
HSLhsl(302, 86%, 14%)
HSVhsv(302, 92%, 26%)
CMYKcmyk(0%, 92.4%, 3%, 74.1%)
CIE-LABlab(13.46, 34.93, -20.81)
CIE-LCHlch(13.46, 40.66, 329.21°)
OKLaboklab(26.92% 0.0987 -0.0576)
OKLCHoklch(26.92% 0.114 329.7)
XYZxyz(3.2264, 1.6372, 4.9956)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420540 #054207
analogous
#260542 #420540 #420522
triadic
#420540 #404205 #054042
tetradic
#420540 #422605 #054207 #052242
square
#420540 #422605 #054207 #052242
split-complementary
#420540 #224205 #054226
monochromatic
#1C021C #1C021C #420540 #7B0977 #B40EAE

Accessibility & contrast

On white

15.82
#420540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#420540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420540
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420540#FFFFFF#000000##FFFFFF
##4205401.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#19253F
Tritanopia (blue-blind)
#450F23
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #420540;
/* rgb */ color: rgb(66, 5, 64);
/* oklch */ color: oklch(26.9% 0.114 329.7);
Tailwind
colors: {
  custom: {
    50: '#794f75',
    500: '#420540',
    950: '#000000',
  },
}
SCSS
$custom: #420540;
$custom-light: #794f75;
$custom-dark: #000000;
JSON
{
  "hex": "#420540",
  "rgb": {
    "r": 66,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 301.967,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26922,
    "c": 0.11431,
    "h": 329.7
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#420540
secondary
#208224
accent
#FC332C
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #420540

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

Preview Lab → · Contrast checker → · Palette generator →

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