#42177E#42177E

#42177E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.158 H 295.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#42177E
RGBrgb(66, 23, 126)
HSLhsl(265, 69%, 29%)
HSVhsv(265, 82%, 49%)
CMYKcmyk(47.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(21.12, 42.54, -49.75)
CIE-LCHlch(21.12, 65.46, 310.53°)
OKLaboklab(33.94% 0.0679 -0.1426)
OKLCHoklch(33.94% 0.158 295.5)
XYZxyz(6.3180, 3.2772, 20.0343)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42177E #537E17
analogous
#171F7E #42177E #76177E
triadic
#42177E #7E4217 #177E42
tetradic
#42177E #7E171F #537E17 #177E76
square
#42177E #7E171F #537E17 #177E76
split-complementary
#42177E #7E7617 #1F7E17
monochromatic
#0E051A #270E4A #42177E #5D20B2 #7A35DA

Accessibility & contrast

On white

12.69
#42177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#42177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42177E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42177E#FFFFFF#000000##FFFFFF
##42177E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42177e;
/* rgb */ color: rgb(66, 23, 126);
/* oklch */ color: oklch(33.9% 0.158 295.5);
Tailwind
colors: {
  custom: {
    50: '#7d5aa4',
    500: '#42177e',
    950: '#000000',
  },
}
SCSS
$custom: #42177e;
$custom-light: #7d5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42177e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 265.049,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.15799,
    "h": 295.5
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#42177E
secondary
#82B33E
accent
#EC3CA2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42177E

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

Preview Lab → · Contrast checker → · Palette generator →

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