#42154B#42154B

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

Color values

HEX#42154B
RGBrgb(66, 21, 75)
HSLhsl(290, 56%, 19%)
HSVhsv(290, 72%, 29%)
CMYKcmyk(12%, 72%, 0%, 70.6%)
CIE-LABlab(16.52, 30.58, -23.60)
CIE-LCHlch(16.52, 38.63, 322.34°)
OKLaboklab(29.35% 0.0801 -0.0659)
OKLCHoklch(29.35% 0.104 320.6)
XYZxyz(3.7848, 2.2028, 6.8811)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42154B #1E4B15
analogous
#27154B #42154B #4B1539
triadic
#42154B #4B4215 #154B42
tetradic
#42154B #4B2715 #1E4B15 #15394B
square
#42154B #4B2715 #1E4B15 #15394B
split-complementary
#42154B #394B15 #154B27
monochromatic
#150718 #18081B #42154B #6C227B #9630AB

Accessibility & contrast

On white

14.58
#42154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42154B
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42154B#FFFFFF#000000##FFFFFF
##42154B1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264D
Deuteranopia (green-blind)
#1A2A4A
Tritanopia (blue-blind)
#421E2E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #42154b;
/* rgb */ color: rgb(66, 21, 75);
/* oklch */ color: oklch(29.4% 0.104 320.6);
Tailwind
colors: {
  custom: {
    50: '#78567d',
    500: '#42154b',
    950: '#000000',
  },
}
SCSS
$custom: #42154b;
$custom-light: #78567d;
$custom-dark: #000000;
JSON
{
  "hex": "#42154b",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 290,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29352,
    "c": 0.10375,
    "h": 320.6
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#42154B
secondary
#458339
accent
#E04861
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42154B

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

Preview Lab → · Contrast checker → · Palette generator →

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