#42173F#42173F

#42173F is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.088 H 330.4°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#42173F
RGBrgb(66, 23, 63)
HSLhsl(304, 48%, 17%)
HSVhsv(304, 65%, 26%)
CMYKcmyk(0%, 65.2%, 4.5%, 74.1%)
CIE-LABlab(16.16, 26.95, -15.85)
CIE-LCHlch(16.16, 31.27, 329.54°)
OKLaboklab(28.85% 0.0763 -0.0434)
OKLCHoklch(28.85% 0.088 330.4)
XYZxyz(3.4503, 2.1302, 4.9311)
Luminance0.0213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42173F #17421A
analogous
#301742 #42173F #42172A
triadic
#42173F #3F4217 #173F42
tetradic
#42173F #423017 #17421A #172A42
square
#42173F #423017 #17421A #172A42
split-complementary
#42173F #2A4217 #174230
monochromatic
#170816 #170816 #42173F #6F276A #9D3796

Accessibility & contrast

On white

14.73
#42173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#42173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42173F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42173F#FFFFFF#000000##FFFFFF
##42173F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142440
Deuteranopia (green-blind)
#222A3E
Tritanopia (blue-blind)
#451B28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42173f;
/* rgb */ color: rgb(66, 23, 63);
/* oklch */ color: oklch(28.8% 0.088 330.4);
Tailwind
colors: {
  custom: {
    50: '#785774',
    500: '#42173f',
    950: '#000000',
  },
}
SCSS
$custom: #42173f;
$custom-light: #785774;
$custom-dark: #000000;
JSON
{
  "hex": "#42173f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 304.186,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28849,
    "c": 0.08784,
    "h": 330.4
  },
  "luminance": 0.0213
}

Semantic roles & 50–950 ramp

primary
#42173F
secondary
#3C7940
accent
#D85950
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #42173F

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

Preview Lab → · Contrast checker → · Palette generator →

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