#42173E#42173E

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

Color values

HEX#42173E
RGBrgb(66, 23, 62)
HSLhsl(306, 48%, 17%)
HSVhsv(306, 65%, 26%)
CMYKcmyk(0%, 65.2%, 6.1%, 74.1%)
CIE-LABlab(16.10, 26.75, -15.23)
CIE-LCHlch(16.10, 30.78, 330.34°)
OKLaboklab(28.79% 0.0762 -0.0417)
OKLCHoklch(28.79% 0.087 331.3)
XYZxyz(3.4226, 2.1191, 4.7852)
Luminance0.0212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42173E #17421B
analogous
#301742 #42173E #421729
triadic
#42173E #3E4217 #173E42
tetradic
#42173E #423017 #17421B #172942
square
#42173E #423017 #17421B #172942
split-complementary
#42173E #294217 #174230
monochromatic
#170815 #170815 #42173E #6F2769 #9D3793

Accessibility & contrast

On white

14.75
#42173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42173E
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42173E#FFFFFF#000000##FFFFFF
##42173E1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15243F
Deuteranopia (green-blind)
#232A3D
Tritanopia (blue-blind)
#451B28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42173e;
/* rgb */ color: rgb(66, 23, 62);
/* oklch */ color: oklch(28.8% 0.087 331.3);
Tailwind
colors: {
  custom: {
    50: '#785773',
    500: '#42173e',
    950: '#000000',
  },
}
SCSS
$custom: #42173e;
$custom-light: #785773;
$custom-dark: #000000;
JSON
{
  "hex": "#42173e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 305.581,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2879,
    "c": 0.08684,
    "h": 331.3
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#42173E
secondary
#3C7942
accent
#D85D50
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #42173E

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

Preview Lab → · Contrast checker → · Palette generator →

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