#420F42#420F42

#420F42 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.104 H 327.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#420F42
RGBrgb(66, 15, 66)
HSLhsl(300, 63%, 16%)
HSVhsv(300, 77%, 26%)
CMYKcmyk(0%, 77.3%, 0%, 74.1%)
CIE-LABlab(14.92, 31.49, -19.90)
CIE-LCHlch(14.92, 37.25, 327.71°)
OKLaboklab(28.01% 0.0878 -0.0551)
OKLCHoklch(28.01% 0.104 327.9)
XYZxyz(3.4009, 1.8935, 5.3396)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420F42 #0F420F
analogous
#280F42 #420F42 #420F28
triadic
#420F42 #42420F #0F4242
tetradic
#420F42 #42280F #0F420F #0F2842
square
#420F42 #42280F #0F420F #0F2842
split-complementary
#420F42 #28420F #0F4228
monochromatic
#190619 #190619 #420F42 #741A74 #A626A6

Accessibility & contrast

On white

15.23
#420F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#420F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420F42
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420F42#FFFFFF#000000##FFFFFF
##420F421.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072143
Deuteranopia (green-blind)
#1C2841
Tritanopia (blue-blind)
#441627
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #420f42;
/* rgb */ color: rgb(66, 15, 66);
/* oklch */ color: oklch(28.0% 0.104 327.9);
Tailwind
colors: {
  custom: {
    50: '#795376',
    500: '#420f42',
    950: '#000000',
  },
}
SCSS
$custom: #420f42;
$custom-light: #795376;
$custom-dark: #000000;
JSON
{
  "hex": "#420f42",
  "rgb": {
    "r": 66,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 300,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.28009,
    "c": 0.10366,
    "h": 327.9
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#420F42
secondary
#307C30
accent
#E64242
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #420F42

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

Preview Lab → · Contrast checker → · Palette generator →

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