#5F179E#5F179E

#5F179E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.195 H 301.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5F179E
RGBrgb(95, 23, 158)
HSLhsl(272, 75%, 35%)
HSVhsv(272, 85%, 62%)
CMYKcmyk(39.9%, 85.4%, 0%, 38%)
CIE-LABlab(28.15, 54.79, -57.97)
CIE-LCHlch(28.15, 79.76, 313.38°)
OKLaboklab(40.6% 0.1025 -0.1657)
OKLCHoklch(40.6% 0.195 301.7)
XYZxyz(11.1958, 5.5142, 32.8156)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F179E #569E17
analogous
#1B179E #5F179E #9E1799
triadic
#5F179E #9E5F17 #179E5F
tetradic
#5F179E #9E1B17 #569E17 #17999E
square
#5F179E #9E1B17 #569E17 #17999E
split-complementary
#5F179E #999E17 #179E1B
monochromatic
#1F0733 #3F0F69 #5F179E #7F1FD3 #9D4BE5

Accessibility & contrast

On white

9.99
#5F179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F179E
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F179E#FFFFFF#000000##FFFFFF
##5F179E1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#513F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f179e;
/* rgb */ color: rgb(95, 23, 158);
/* oklch */ color: oklch(40.6% 0.195 301.7);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5f179e',
    950: '#000000',
  },
}
SCSS
$custom: #5f179e;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f179e",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 272,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.406,
    "c": 0.19486,
    "h": 301.7
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#5F179E
secondary
#84C64A
accent
#F1378E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F179E

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

Preview Lab → · Contrast checker → · Palette generator →

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