#42173B#42173B

#42173B is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.6% C 0.084 H 334.3°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#42173B
RGBrgb(66, 23, 59)
HSLhsl(310, 48%, 17%)
HSVhsv(310, 65%, 26%)
CMYKcmyk(0%, 65.2%, 10.6%, 74.1%)
CIE-LABlab(15.94, 26.15, -13.38)
CIE-LCHlch(15.94, 29.37, 332.91°)
OKLaboklab(28.62% 0.0756 -0.0364)
OKLCHoklch(28.62% 0.084 334.3)
XYZxyz(3.3426, 2.0871, 4.3636)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42173B #17421E
analogous
#331742 #42173B #421726
triadic
#42173B #3B4217 #173B42
tetradic
#42173B #423317 #17421E #172642
square
#42173B #423317 #17421E #172642
split-complementary
#42173B #264217 #174233
monochromatic
#170814 #170814 #42173B #6F2764 #9D378C

Accessibility & contrast

On white

14.82
#42173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#42173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42173B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42173B#FFFFFF#000000##FFFFFF
##42173B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17243C
Deuteranopia (green-blind)
#242A3A
Tritanopia (blue-blind)
#451A26
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42173b;
/* rgb */ color: rgb(66, 23, 59);
/* oklch */ color: oklch(28.6% 0.084 334.3);
Tailwind
colors: {
  custom: {
    50: '#785771',
    500: '#42173b',
    950: '#000000',
  },
}
SCSS
$custom: #42173b;
$custom-light: #785771;
$custom-dark: #000000;
JSON
{
  "hex": "#42173b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 309.767,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28618,
    "c": 0.08393,
    "h": 334.3
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#42173B
secondary
#3C7946
accent
#D86650
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #42173B

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

Preview Lab → · Contrast checker → · Palette generator →

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