#42154C#42154C

#42154C is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.4% C 0.105 H 319.9°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#42154C
RGBrgb(66, 21, 76)
HSLhsl(289, 57%, 19%)
HSVhsv(289, 72%, 30%)
CMYKcmyk(13.2%, 72.4%, 0%, 70.2%)
CIE-LABlab(16.59, 30.80, -24.18)
CIE-LCHlch(16.59, 39.16, 321.87°)
OKLaboklab(29.42% 0.0801 -0.0676)
OKLCHoklch(29.42% 0.105 319.9)
XYZxyz(3.8193, 2.2166, 7.0627)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42154C #1F4C15
analogous
#27154C #42154C #4C153B
triadic
#42154C #4C4215 #154C42
tetradic
#42154C #4C2715 #1F4C15 #153B4C
square
#42154C #4C2715 #1F4C15 #153B4C
split-complementary
#42154C #3B4C15 #154C27
monochromatic
#150718 #18081C #42154C #6C227C #952FAC

Accessibility & contrast

On white

14.55
#42154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#42154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42154C
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42154C#FFFFFF#000000##FFFFFF
##42154C1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05264E
Deuteranopia (green-blind)
#192B4B
Tritanopia (blue-blind)
#421F2E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #42154c;
/* rgb */ color: rgb(66, 21, 76);
/* oklch */ color: oklch(29.4% 0.105 319.9);
Tailwind
colors: {
  custom: {
    50: '#78567e',
    500: '#42154c',
    950: '#000000',
  },
}
SCSS
$custom: #42154c;
$custom-light: #78567e;
$custom-dark: #000000;
JSON
{
  "hex": "#42154c",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 289.091,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29423,
    "c": 0.10482,
    "h": 319.9
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#42154C
secondary
#478439
accent
#E04863
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42154C

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

Preview Lab → · Contrast checker → · Palette generator →

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