#42174E#42174E

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

Color values

HEX#42174E
RGBrgb(66, 23, 78)
HSLhsl(287, 54%, 20%)
HSVhsv(287, 71%, 31%)
CMYKcmyk(15.4%, 70.5%, 0%, 69.4%)
CIE-LABlab(17.09, 30.24, -24.74)
CIE-LCHlch(17.09, 39.07, 320.71°)
OKLaboklab(29.83% 0.0774 -0.0692)
OKLCHoklch(29.83% 0.104 318.2)
XYZxyz(3.9281, 2.3213, 7.4474)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42174E #234E17
analogous
#27174E #42174E #4E173F
triadic
#42174E #4E4217 #174E42
tetradic
#42174E #4E2717 #234E17 #173F4E
square
#42174E #4E2717 #234E17 #173F4E
split-complementary
#42174E #3F4E17 #174E27
monochromatic
#140718 #1A091F #42174E #6A257D #9233AD

Accessibility & contrast

On white

14.34
#42174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42174E
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42174E#FFFFFF#000000##FFFFFF
##42174E1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#192B4D
Tritanopia (blue-blind)
#422130
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42174e;
/* rgb */ color: rgb(66, 23, 78);
/* oklch */ color: oklch(29.8% 0.104 318.2);
Tailwind
colors: {
  custom: {
    50: '#785880',
    500: '#42174e',
    950: '#000000',
  },
}
SCSS
$custom: #42174e;
$custom-light: #785880;
$custom-dark: #000000;
JSON
{
  "hex": "#42174e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 286.909,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29831,
    "c": 0.10384,
    "h": 318.2
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#42174E
secondary
#4C853C
accent
#DE4A6A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42174E

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

Preview Lab → · Contrast checker → · Palette generator →

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