#42176C#42176C

#42176C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.138 H 302.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#42176C
RGBrgb(66, 23, 108)
HSLhsl(270, 65%, 26%)
HSVhsv(270, 79%, 42%)
CMYKcmyk(38.9%, 78.7%, 0%, 57.6%)
CIE-LABlab(19.45, 37.74, -40.92)
CIE-LCHlch(19.45, 55.66, 312.68°)
OKLaboklab(32.26% 0.0732 -0.1167)
OKLCHoklch(32.26% 0.138 302.1)
XYZxyz(5.2593, 2.8537, 14.4582)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42176C #416C17
analogous
#18176C #42176C #6C176B
triadic
#42176C #6C4217 #176C42
tetradic
#42176C #6C1817 #416C17 #176B6C
square
#42176C #6C1817 #416C17 #176B6C
split-complementary
#42176C #6B6C17 #176C18
monochromatic
#0F0519 #230C3A #42176C #61229E #802CD1

Accessibility & contrast

On white

13.37
#42176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42176C
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42176C#FFFFFF#000000##FFFFFF
##42176C1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#392D40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42176c;
/* rgb */ color: rgb(66, 23, 108);
/* oklch */ color: oklch(32.3% 0.138 302.1);
Tailwind
colors: {
  custom: {
    50: '#7b5997',
    500: '#42176c',
    950: '#000000',
  },
}
SCSS
$custom: #42176c;
$custom-light: #7b5997;
$custom-dark: #000000;
JSON
{
  "hex": "#42176c",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 270.353,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32258,
    "c": 0.13775,
    "h": 302.1
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#42176C
secondary
#6FA23D
accent
#E84093
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42176C

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

Preview Lab → · Contrast checker → · Palette generator →

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