#42174D#42174D

#42174D is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.103 H 318.9°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#42174D
RGBrgb(66, 23, 77)
HSLhsl(288, 54%, 20%)
HSVhsv(288, 70%, 30%)
CMYKcmyk(14.3%, 70.1%, 0%, 69.8%)
CIE-LABlab(17.02, 30.01, -24.17)
CIE-LCHlch(17.02, 38.53, 321.16°)
OKLaboklab(29.76% 0.0774 -0.0675)
OKLCHoklch(29.76% 0.103 318.9)
XYZxyz(3.8925, 2.3070, 7.2600)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42174D #224D17
analogous
#27174D #42174D #4D173D
triadic
#42174D #4D4217 #174D42
tetradic
#42174D #4D2717 #224D17 #173D4D
square
#42174D #4D2717 #224D17 #173D4D
split-complementary
#42174D #3D4D17 #174D27
monochromatic
#140718 #1A091E #42174D #6A257C #9333AB

Accessibility & contrast

On white

14.37
#42174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#42174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42174D
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42174D#FFFFFF#000000##FFFFFF
##42174D1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#1A2B4C
Tritanopia (blue-blind)
#42202F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42174d;
/* rgb */ color: rgb(66, 23, 77);
/* oklch */ color: oklch(29.8% 0.103 318.9);
Tailwind
colors: {
  custom: {
    50: '#78577f',
    500: '#42174d',
    950: '#000000',
  },
}
SCSS
$custom: #42174d;
$custom-light: #78577f;
$custom-dark: #000000;
JSON
{
  "hex": "#42174d",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 287.778,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29761,
    "c": 0.10273,
    "h": 318.9
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#42174D
secondary
#4A843C
accent
#DD4A68
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42174D

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

Preview Lab → · Contrast checker → · Palette generator →

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