#5F179F#5F179F

#5F179F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.7% C 0.196 H 301.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5F179F
RGBrgb(95, 23, 159)
HSLhsl(272, 75%, 36%)
HSVhsv(272, 86%, 62%)
CMYKcmyk(40.3%, 85.5%, 0%, 37.6%)
CIE-LABlab(28.24, 55.02, -58.43)
CIE-LCHlch(28.24, 80.25, 313.28°)
OKLaboklab(40.69% 0.1022 -0.1671)
OKLCHoklch(40.69% 0.196 301.4)
XYZxyz(11.2822, 5.5488, 33.2708)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F179F #579F17
analogous
#1B179F #5F179F #9F179B
triadic
#5F179F #9F5F17 #179F5F
tetradic
#5F179F #9F1B17 #579F17 #179B9F
square
#5F179F #9F1B17 #579F17 #179B9F
split-complementary
#5F179F #9B9F17 #179F1B
monochromatic
#1F0834 #3F0F6A #5F179F #7F1FD4 #9D4BE5

Accessibility & contrast

On white

9.95
#5F179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F179F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F179F#FFFFFF#000000##FFFFFF
##5F179F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#503F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f179f;
/* rgb */ color: rgb(95, 23, 159);
/* oklch */ color: oklch(40.7% 0.196 301.4);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5f179f',
    950: '#000000',
  },
}
SCSS
$custom: #5f179f;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f179f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 271.765,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.19583,
    "h": 301.4
  },
  "luminance": 0.05549
}

Semantic roles & 50–950 ramp

primary
#5F179F
secondary
#85C74B
accent
#F1368E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F179F

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

Preview Lab → · Contrast checker → · Palette generator →

#5F179F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva