#42177A#42177A

#42177A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.154 H 296.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#42177A
RGBrgb(66, 23, 122)
HSLhsl(266, 68%, 28%)
HSVhsv(266, 81%, 48%)
CMYKcmyk(45.9%, 81.1%, 0%, 52.2%)
CIE-LABlab(20.74, 41.46, -47.84)
CIE-LCHlch(20.74, 63.30, 310.91°)
OKLaboklab(33.56% 0.0692 -0.137)
OKLCHoklch(33.56% 0.154 296.8)
XYZxyz(6.0651, 3.1761, 18.7021)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42177A #4F7A17
analogous
#171D7A #42177A #73177A
triadic
#42177A #7A4217 #177A42
tetradic
#42177A #7A171D #4F7A17 #177A73
square
#42177A #7A171D #4F7A17 #177A73
split-complementary
#42177A #7A7317 #1D7A17
monochromatic
#0E051A #260D47 #42177A #5E21AD #7B33D9

Accessibility & contrast

On white

12.84
#42177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#42177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42177A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42177A#FFFFFF#000000##FFFFFF
##42177A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#333248
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42177a;
/* rgb */ color: rgb(66, 23, 122);
/* oklch */ color: oklch(33.6% 0.154 296.8);
Tailwind
colors: {
  custom: {
    50: '#7d5aa1',
    500: '#42177a',
    950: '#000000',
  },
}
SCSS
$custom: #42177a;
$custom-light: #7d5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#42177a",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 266.061,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33557,
    "c": 0.15352,
    "h": 296.8
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#42177A
secondary
#7EAF3E
accent
#EB3D9F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42177A

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

Preview Lab → · Contrast checker → · Palette generator →

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