#42176B#42176B

#42176B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.137 H 302.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#42176B
RGBrgb(66, 23, 107)
HSLhsl(271, 65%, 25%)
HSVhsv(271, 79%, 42%)
CMYKcmyk(38.3%, 78.5%, 0%, 58%)
CIE-LABlab(19.36, 37.47, -40.41)
CIE-LCHlch(19.36, 55.11, 312.84°)
OKLaboklab(32.17% 0.0734 -0.1152)
OKLCHoklch(32.17% 0.137 302.5)
XYZxyz(5.2064, 2.8326, 14.1795)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42176B #406B17
analogous
#18176B #42176B #6B176A
triadic
#42176B #6B4217 #176B42
tetradic
#42176B #6B1817 #406B17 #176A6B
square
#42176B #6B1817 #406B17 #176A6B
split-complementary
#42176B #6A6B17 #176B18
monochromatic
#100519 #230C39 #42176B #61229D #802DD0

Accessibility & contrast

On white

13.40
#42176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#42176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42176B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42176B#FFFFFF#000000##FFFFFF
##42176B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#392C40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42176b;
/* rgb */ color: rgb(66, 23, 107);
/* oklch */ color: oklch(32.2% 0.137 302.5);
Tailwind
colors: {
  custom: {
    50: '#7b5996',
    500: '#42176b',
    950: '#000000',
  },
}
SCSS
$custom: #42176b;
$custom-light: #7b5996;
$custom-dark: #000000;
JSON
{
  "hex": "#42176b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 270.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32168,
    "c": 0.13661,
    "h": 302.5
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#42176B
secondary
#6EA13D
accent
#E84092
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42176B

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

Preview Lab → · Contrast checker → · Palette generator →

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