#42176F#42176F

#42176F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.141 H 300.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#42176F
RGBrgb(66, 23, 111)
HSLhsl(269, 66%, 26%)
HSVhsv(269, 79%, 44%)
CMYKcmyk(40.5%, 79.3%, 0%, 56.5%)
CIE-LABlab(19.72, 38.53, -42.43)
CIE-LCHlch(19.72, 57.31, 312.24°)
OKLaboklab(32.53% 0.0724 -0.1212)
OKLCHoklch(32.53% 0.141 300.9)
XYZxyz(5.4217, 2.9187, 15.3136)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42176F #446F17
analogous
#17186F #42176F #6E176F
triadic
#42176F #6F4217 #176F42
tetradic
#42176F #6F1718 #446F17 #176F6E
square
#42176F #6F1718 #446F17 #176F6E
split-complementary
#42176F #6F6E17 #186F17
monochromatic
#0F0519 #240C3C #42176F #6022A2 #7E2DD3

Accessibility & contrast

On white

13.26
#42176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42176F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42176F#FFFFFF#000000##FFFFFF
##42176F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#382E42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #42176f;
/* rgb */ color: rgb(66, 23, 111);
/* oklch */ color: oklch(32.5% 0.141 300.9);
Tailwind
colors: {
  custom: {
    50: '#7b5999',
    500: '#42176f',
    950: '#000000',
  },
}
SCSS
$custom: #42176f;
$custom-light: #7b5999;
$custom-dark: #000000;
JSON
{
  "hex": "#42176f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 269.318,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32528,
    "c": 0.14113,
    "h": 300.9
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#42176F
secondary
#72A53D
accent
#E93F96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42176F

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

Preview Lab → · Contrast checker → · Palette generator →

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