#5F189E#5F189E

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

Color values

HEX#5F189E
RGBrgb(95, 24, 158)
HSLhsl(272, 74%, 36%)
HSVhsv(272, 85%, 62%)
CMYKcmyk(39.9%, 84.8%, 0%, 38%)
CIE-LABlab(28.26, 54.47, -57.79)
CIE-LCHlch(28.26, 79.42, 313.31°)
OKLaboklab(40.67% 0.1019 -0.1652)
OKLCHoklch(40.67% 0.194 301.7)
XYZxyz(11.2160, 5.5547, 32.8224)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F189E #579E18
analogous
#1C189E #5F189E #9E189A
triadic
#5F189E #9E5F18 #189E5F
tetradic
#5F189E #9E1C18 #579E18 #189A9E
square
#5F189E #9E1C18 #579E18 #189A9E
split-complementary
#5F189E #9A9E18 #189E1C
monochromatic
#1F0834 #3F1069 #5F189E #7F20D3 #9D4DE4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F189E#FFFFFF#000000##FFFFFF
##5F189E1.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)
#0042A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#513F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f189e;
/* rgb */ color: rgb(95, 24, 158);
/* oklch */ color: oklch(40.7% 0.194 301.7);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5f189e',
    950: '#000000',
  },
}
SCSS
$custom: #5f189e;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f189e",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 271.791,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.19409,
    "h": 301.7
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#5F189E
secondary
#85C64C
accent
#F0388E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F189E

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

Preview Lab → · Contrast checker → · Palette generator →

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