#42176A#42176A

#42176A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.135 H 302.9°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#42176A
RGBrgb(66, 23, 106)
HSLhsl(271, 64%, 25%)
HSVhsv(271, 78%, 42%)
CMYKcmyk(37.7%, 78.3%, 0%, 58.4%)
CIE-LABlab(19.27, 37.21, -39.90)
CIE-LCHlch(19.27, 54.56, 313.01°)
OKLaboklab(32.08% 0.0736 -0.1137)
OKLCHoklch(32.08% 0.135 302.9)
XYZxyz(5.1541, 2.8116, 13.9040)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42176A #3F6A17
analogous
#18176A #42176A #6A1768
triadic
#42176A #6A4217 #176A42
tetradic
#42176A #6A1817 #3F6A17 #17686A
square
#42176A #6A1817 #3F6A17 #17686A
split-complementary
#42176A #686A17 #176A18
monochromatic
#100519 #230C38 #42176A #61229C #812DCF

Accessibility & contrast

On white

13.44
#42176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#42176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42176A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42176A#FFFFFF#000000##FFFFFF
##42176A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002E68
Tritanopia (blue-blind)
#3A2C3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42176a;
/* rgb */ color: rgb(66, 23, 106);
/* oklch */ color: oklch(32.1% 0.135 302.9);
Tailwind
colors: {
  custom: {
    50: '#7b5995',
    500: '#42176a',
    950: '#000000',
  },
}
SCSS
$custom: #42176a;
$custom-light: #7b5995;
$custom-dark: #000000;
JSON
{
  "hex": "#42176a",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 271.084,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.13548,
    "h": 302.9
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#42176A
secondary
#6DA03D
accent
#E74091
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42176A

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

Preview Lab → · Contrast checker → · Palette generator →

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