#5F189F#5F189F

#5F189F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.195 H 301.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5F189F
RGBrgb(95, 24, 159)
HSLhsl(272, 74%, 36%)
HSVhsv(272, 85%, 62%)
CMYKcmyk(40.3%, 84.9%, 0%, 37.6%)
CIE-LABlab(28.35, 54.70, -58.25)
CIE-LCHlch(28.35, 79.91, 313.20°)
OKLaboklab(40.77% 0.1015 -0.1665)
OKLCHoklch(40.77% 0.195 301.4)
XYZxyz(11.3024, 5.5893, 33.2775)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F189F #589F18
analogous
#1C189F #5F189F #9F189B
triadic
#5F189F #9F5F18 #189F5F
tetradic
#5F189F #9F1C18 #589F18 #189B9F
square
#5F189F #9F1C18 #589F18 #189B9F
split-complementary
#5F189F #9B9F18 #189F1C
monochromatic
#1F0835 #3F106A #5F189F #7F20D4 #9D4DE4

Accessibility & contrast

On white

9.92
#5F189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F189F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F189F#FFFFFF#000000##FFFFFF
##5F189F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f189f;
/* rgb */ color: rgb(95, 24, 159);
/* oklch */ color: oklch(40.8% 0.195 301.4);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5f189f',
    950: '#000000',
  },
}
SCSS
$custom: #5f189f;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f189f",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 271.556,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40765,
    "c": 0.19506,
    "h": 301.4
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#5F189F
secondary
#86C64D
accent
#F0378F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F189F

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

Preview Lab → · Contrast checker → · Palette generator →

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