#42176E#42176E

#42176E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.140 H 301.3°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#42176E
RGBrgb(66, 23, 110)
HSLhsl(270, 65%, 26%)
HSVhsv(270, 79%, 43%)
CMYKcmyk(40%, 79.1%, 0%, 56.9%)
CIE-LABlab(19.63, 38.26, -41.93)
CIE-LCHlch(19.63, 56.76, 312.38°)
OKLaboklab(32.44% 0.0727 -0.1197)
OKLCHoklch(32.44% 0.14 301.3)
XYZxyz(5.3669, 2.8968, 15.0252)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42176E #436E17
analogous
#17176E #42176E #6D176E
triadic
#42176E #6E4217 #176E42
tetradic
#42176E #6E1717 #436E17 #176E6D
square
#42176E #6E1717 #436E17 #176E6D
split-complementary
#42176E #6E6D17 #176E17
monochromatic
#0F0519 #240C3B #42176E #6022A1 #7F2CD3

Accessibility & contrast

On white

13.30
#42176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#42176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42176E
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42176E#FFFFFF#000000##FFFFFF
##42176E1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#382D41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42176e;
/* rgb */ color: rgb(66, 23, 110);
/* oklch */ color: oklch(32.4% 0.140 301.3);
Tailwind
colors: {
  custom: {
    50: '#7b5998',
    500: '#42176e',
    950: '#000000',
  },
}
SCSS
$custom: #42176e;
$custom-light: #7b5998;
$custom-dark: #000000;
JSON
{
  "hex": "#42176e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 269.655,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32438,
    "c": 0.14001,
    "h": 301.3
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#42176E
secondary
#71A43D
accent
#E83F95
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42176E

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

Preview Lab → · Contrast checker → · Palette generator →

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