#42177F#42177F

#42177F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.159 H 295.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#42177F
RGBrgb(66, 23, 127)
HSLhsl(265, 69%, 29%)
HSVhsv(265, 82%, 50%)
CMYKcmyk(48%, 81.9%, 0%, 50.2%)
CIE-LABlab(21.22, 42.81, -50.23)
CIE-LCHlch(21.22, 65.99, 310.44°)
OKLaboklab(34.04% 0.0676 -0.144)
OKLCHoklch(34.04% 0.159 295.1)
XYZxyz(6.3829, 3.3032, 20.3758)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42177F #547F17
analogous
#17207F #42177F #76177F
triadic
#42177F #7F4217 #177F42
tetradic
#42177F #7F1720 #547F17 #177F76
square
#42177F #7F1720 #547F17 #177F76
split-complementary
#42177F #7F7617 #207F17
monochromatic
#0D051A #270E4B #42177F #5D20B3 #7A36DB

Accessibility & contrast

On white

12.65
#42177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42177F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42177F#FFFFFF#000000##FFFFFF
##42177F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#30354B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42177f;
/* rgb */ color: rgb(66, 23, 127);
/* oklch */ color: oklch(34.0% 0.159 295.1);
Tailwind
colors: {
  custom: {
    50: '#7d5aa5',
    500: '#42177f',
    950: '#000000',
  },
}
SCSS
$custom: #42177f;
$custom-light: #7d5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#42177f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 264.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34041,
    "c": 0.15911,
    "h": 295.1
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#42177F
secondary
#83B43E
accent
#EC3CA3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42177F

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

Preview Lab → · Contrast checker → · Palette generator →

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