#42177D#42177D

#42177D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.157 H 295.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#42177D
RGBrgb(66, 23, 125)
HSLhsl(265, 69%, 29%)
HSVhsv(265, 82%, 49%)
CMYKcmyk(47.2%, 81.6%, 0%, 51%)
CIE-LABlab(21.02, 42.27, -49.28)
CIE-LCHlch(21.02, 64.92, 310.62°)
OKLaboklab(33.85% 0.0682 -0.1412)
OKLCHoklch(33.85% 0.157 295.8)
XYZxyz(6.2538, 3.2516, 19.6962)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42177D #527D17
analogous
#171F7D #42177D #75177D
triadic
#42177D #7D4217 #177D42
tetradic
#42177D #7D171F #527D17 #177D75
square
#42177D #7D171F #527D17 #177D75
split-complementary
#42177D #7D7517 #1F7D17
monochromatic
#0E051A #270D49 #42177D #5D21B1 #7A35DA

Accessibility & contrast

On white

12.72
#42177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#42177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42177D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42177D#FFFFFF#000000##FFFFFF
##42177D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#31344A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42177d;
/* rgb */ color: rgb(66, 23, 125);
/* oklch */ color: oklch(33.8% 0.157 295.8);
Tailwind
colors: {
  custom: {
    50: '#7d5aa4',
    500: '#42177d',
    950: '#000000',
  },
}
SCSS
$custom: #42177d;
$custom-light: #7d5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42177d",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 265.294,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33846,
    "c": 0.15687,
    "h": 295.8
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#42177D
secondary
#81B23E
accent
#EC3CA2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42177D

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

Preview Lab → · Contrast checker → · Palette generator →

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