#42174A#42174A

#42174A is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.6% C 0.099 H 321.1°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#42174A
RGBrgb(66, 23, 74)
HSLhsl(291, 53%, 19%)
HSVhsv(291, 69%, 29%)
CMYKcmyk(10.8%, 68.9%, 0%, 71%)
CIE-LABlab(16.82, 29.32, -22.43)
CIE-LCHlch(16.82, 36.92, 322.59°)
OKLaboklab(29.55% 0.0774 -0.0625)
OKLCHoklch(29.55% 0.099 321.1)
XYZxyz(3.7891, 2.2656, 6.7150)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42174A #1F4A17
analogous
#29174A #42174A #4A1739
triadic
#42174A #4A4217 #174A42
tetradic
#42174A #4A2917 #1F4A17 #17394A
square
#42174A #4A2917 #1F4A17 #17394A
split-complementary
#42174A #394A17 #174A29
monochromatic
#150717 #18081B #42174A #6C2679 #9534A7

Accessibility & contrast

On white

14.45
#42174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#42174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42174A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42174A#FFFFFF#000000##FFFFFF
##42174A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B264C
Deuteranopia (green-blind)
#1C2B49
Tritanopia (blue-blind)
#431F2E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #42174a;
/* rgb */ color: rgb(66, 23, 74);
/* oklch */ color: oklch(29.6% 0.099 321.1);
Tailwind
colors: {
  custom: {
    50: '#78577d',
    500: '#42174a',
    950: '#000000',
  },
}
SCSS
$custom: #42174a;
$custom-light: #78577d;
$custom-dark: #000000;
JSON
{
  "hex": "#42174a",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 290.588,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29553,
    "c": 0.09943,
    "h": 321.1
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#42174A
secondary
#47813C
accent
#DC4C62
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #42174A

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

Preview Lab → · Contrast checker → · Palette generator →

#42174A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva