#42174C#42174C

#42174C is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.102 H 319.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#42174C
RGBrgb(66, 23, 76)
HSLhsl(289, 54%, 19%)
HSVhsv(289, 70%, 30%)
CMYKcmyk(13.2%, 69.7%, 0%, 70.2%)
CIE-LABlab(16.96, 29.78, -23.59)
CIE-LCHlch(16.96, 37.99, 321.62°)
OKLaboklab(29.69% 0.0774 -0.0659)
OKLCHoklch(29.69% 0.102 319.6)
XYZxyz(3.8575, 2.2930, 7.0755)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42174C #214C17
analogous
#28174C #42174C #4C173C
triadic
#42174C #4C4217 #174C42
tetradic
#42174C #4C2817 #214C17 #173C4C
square
#42174C #4C2817 #214C17 #173C4C
split-complementary
#42174C #3C4C17 #174C28
monochromatic
#140717 #19091D #42174C #6B257B #9433AA

Accessibility & contrast

On white

14.40
#42174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42174C
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42174C#FFFFFF#000000##FFFFFF
##42174C1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274E
Deuteranopia (green-blind)
#1B2B4B
Tritanopia (blue-blind)
#42202F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42174c;
/* rgb */ color: rgb(66, 23, 76);
/* oklch */ color: oklch(29.7% 0.102 319.6);
Tailwind
colors: {
  custom: {
    50: '#78577e',
    500: '#42174c',
    950: '#000000',
  },
}
SCSS
$custom: #42174c;
$custom-light: #78577e;
$custom-dark: #000000;
JSON
{
  "hex": "#42174c",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 288.679,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29691,
    "c": 0.10163,
    "h": 319.6
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#42174C
secondary
#49833C
accent
#DD4B66
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42174C

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

Preview Lab → · Contrast checker → · Palette generator →

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