#42174F#42174F

#42174F is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.9% C 0.105 H 317.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#42174F
RGBrgb(66, 23, 79)
HSLhsl(286, 55%, 20%)
HSVhsv(286, 71%, 31%)
CMYKcmyk(16.5%, 70.9%, 0%, 69%)
CIE-LABlab(17.16, 30.47, -25.31)
CIE-LCHlch(17.16, 39.61, 320.28°)
OKLaboklab(29.9% 0.0774 -0.0709)
OKLCHoklch(29.9% 0.105 317.5)
XYZxyz(3.9642, 2.3357, 7.6376)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42174F #244F17
analogous
#26174F #42174F #4F1740
triadic
#42174F #4F4217 #174F42
tetradic
#42174F #4F2617 #244F17 #17404F
square
#42174F #4F2617 #244F17 #17404F
split-complementary
#42174F #404F17 #174F26
monochromatic
#140718 #1A0920 #42174F #6A257E #9133AE

Accessibility & contrast

On white

14.31
#42174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#42174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42174F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42174F#FFFFFF#000000##FFFFFF
##42174F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42174f;
/* rgb */ color: rgb(66, 23, 79);
/* oklch */ color: oklch(29.9% 0.105 317.5);
Tailwind
colors: {
  custom: {
    50: '#785881',
    500: '#42174f',
    950: '#000000',
  },
}
SCSS
$custom: #42174f;
$custom-light: #785881;
$custom-dark: #000000;
JSON
{
  "hex": "#42174f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 286.071,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29903,
    "c": 0.10495,
    "h": 317.5
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#42174F
secondary
#4D863C
accent
#DE4A6C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42174F

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

Preview Lab → · Contrast checker → · Palette generator →

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