#42154D#42154D

#42154D is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.106 H 319.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#42154D
RGBrgb(66, 21, 77)
HSLhsl(288, 57%, 19%)
HSVhsv(288, 73%, 30%)
CMYKcmyk(14.3%, 72.7%, 0%, 69.8%)
CIE-LABlab(16.65, 31.03, -24.75)
CIE-LCHlch(16.65, 39.69, 321.42°)
OKLaboklab(29.49% 0.0801 -0.0693)
OKLCHoklch(29.49% 0.106 319.2)
XYZxyz(3.8543, 2.2306, 7.2473)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42154D #204D15
analogous
#26154D #42154D #4D153C
triadic
#42154D #4D4215 #154D42
tetradic
#42154D #4D2615 #204D15 #153C4D
square
#42154D #4D2615 #204D15 #153C4D
split-complementary
#42154D #3C4D15 #154D26
monochromatic
#150718 #19081D #42154D #6B227D #942FAD

Accessibility & contrast

On white

14.52
#42154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#42154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42154D
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42154D#FFFFFF#000000##FFFFFF
##42154D1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264F
Deuteranopia (green-blind)
#192B4C
Tritanopia (blue-blind)
#421F2F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #42154d;
/* rgb */ color: rgb(66, 21, 77);
/* oklch */ color: oklch(29.5% 0.106 319.2);
Tailwind
colors: {
  custom: {
    50: '#79567f',
    500: '#42154d',
    950: '#000000',
  },
}
SCSS
$custom: #42154d;
$custom-light: #79567f;
$custom-dark: #000000;
JSON
{
  "hex": "#42154d",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 288.214,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29494,
    "c": 0.1059,
    "h": 319.2
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#42154D
secondary
#488539
accent
#E04765
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42154D

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

Preview Lab → · Contrast checker → · Palette generator →

#42154D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva