#42174B#42174B

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

Color values

HEX#42174B
RGBrgb(66, 23, 75)
HSLhsl(290, 53%, 19%)
HSVhsv(290, 69%, 29%)
CMYKcmyk(12%, 69.3%, 0%, 70.6%)
CIE-LABlab(16.89, 29.55, -23.01)
CIE-LCHlch(16.89, 37.45, 322.10°)
OKLaboklab(29.62% 0.0774 -0.0642)
OKLCHoklch(29.62% 0.101 320.3)
XYZxyz(3.8230, 2.2792, 6.8938)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42174B #204B17
analogous
#28174B #42174B #4B173A
triadic
#42174B #4B4217 #174B42
tetradic
#42174B #4B2817 #204B17 #173A4B
square
#42174B #4B2817 #204B17 #173A4B
split-complementary
#42174B #3A4B17 #174B28
monochromatic
#150717 #19091C #42174B #6B257A #9434A9

Accessibility & contrast

On white

14.43
#42174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42174B
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42174B#FFFFFF#000000##FFFFFF
##42174B1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274D
Deuteranopia (green-blind)
#1C2B4A
Tritanopia (blue-blind)
#42202E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42174b;
/* rgb */ color: rgb(66, 23, 75);
/* oklch */ color: oklch(29.6% 0.101 320.3);
Tailwind
colors: {
  custom: {
    50: '#78577d',
    500: '#42174b',
    950: '#000000',
  },
}
SCSS
$custom: #42174b;
$custom-light: #78577d;
$custom-dark: #000000;
JSON
{
  "hex": "#42174b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 289.615,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29621,
    "c": 0.10053,
    "h": 320.3
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#42174B
secondary
#48823C
accent
#DC4B64
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42174B

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

Preview Lab → · Contrast checker → · Palette generator →

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