#42154E#42154E

#42154E is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.6% C 0.107 H 318.5°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#42154E
RGBrgb(66, 21, 78)
HSLhsl(287, 58%, 19%)
HSVhsv(287, 73%, 31%)
CMYKcmyk(15.4%, 73.1%, 0%, 69.4%)
CIE-LABlab(16.72, 31.26, -25.33)
CIE-LCHlch(16.72, 40.23, 320.99°)
OKLaboklab(29.57% 0.0801 -0.0709)
OKLCHoklch(29.57% 0.107 318.5)
XYZxyz(3.8899, 2.2448, 7.4346)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42154E #214E15
analogous
#26154E #42154E #4E153E
triadic
#42154E #4E4215 #154E42
tetradic
#42154E #4E2615 #214E15 #153E4E
square
#42154E #4E2615 #214E15 #153E4E
split-complementary
#42154E #3E4E15 #154E26
monochromatic
#140618 #19081E #42154E #6B227E #942FAE

Accessibility & contrast

On white

14.49
#42154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42154E
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42154E#FFFFFF#000000##FFFFFF
##42154E1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022650
Deuteranopia (green-blind)
#182B4D
Tritanopia (blue-blind)
#421F2F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #42154e;
/* rgb */ color: rgb(66, 21, 78);
/* oklch */ color: oklch(29.6% 0.107 318.5);
Tailwind
colors: {
  custom: {
    50: '#795680',
    500: '#42154e',
    950: '#000000',
  },
}
SCSS
$custom: #42154e;
$custom-light: #795680;
$custom-dark: #000000;
JSON
{
  "hex": "#42154e",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 287.368,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29567,
    "c": 0.10698,
    "h": 318.5
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#42154E
secondary
#498639
accent
#E14767
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42154E

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

Preview Lab → · Contrast checker → · Palette generator →

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