#5F188B#5F188B

#5F188B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.176 H 307.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5F188B
RGBrgb(95, 24, 139)
HSLhsl(277, 71%, 32%)
HSVhsv(277, 83%, 55%)
CMYKcmyk(31.7%, 82.7%, 0%, 45.5%)
CIE-LABlab(26.59, 50.11, -48.81)
CIE-LCHlch(26.59, 69.95, 315.75°)
OKLaboklab(39% 0.1078 -0.1388)
OKLCHoklch(39% 0.176 307.8)
XYZxyz(9.7052, 4.9504, 24.8653)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F188B #448B18
analogous
#25188B #5F188B #8B187E
triadic
#5F188B #8B5F18 #188B5F
tetradic
#5F188B #8B2518 #448B18 #187E8B
square
#5F188B #8B2518 #448B18 #187E8B
split-complementary
#5F188B #7E8B18 #188B25
monochromatic
#180623 #3B0F57 #5F188B #8321BF #A13FDE

Accessibility & contrast

On white

10.55
#5F188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F188B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F188B#FFFFFF#000000##FFFFFF
##5F188B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#583752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f188b;
/* rgb */ color: rgb(95, 24, 139);
/* oklch */ color: oklch(39.0% 0.176 307.8);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5f188b',
    950: '#000000',
  },
}
SCSS
$custom: #5f188b;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f188b",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 277.043,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39004,
    "c": 0.17578,
    "h": 307.8
  },
  "luminance": 0.0495
}

Semantic roles & 50–950 ramp

primary
#5F188B
secondary
#71BE40
accent
#ED3A7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F188B

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

Preview Lab → · Contrast checker → · Palette generator →

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