#5F188F#5F188F

#5F188F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.180 H 306.4°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5F188F
RGBrgb(95, 24, 143)
HSLhsl(276, 71%, 33%)
HSVhsv(276, 83%, 56%)
CMYKcmyk(33.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(26.93, 51.01, -50.74)
CIE-LCHlch(26.93, 71.95, 315.15°)
OKLaboklab(39.35% 0.1067 -0.1445)
OKLCHoklch(39.35% 0.18 306.4)
XYZxyz(10.0028, 5.0694, 26.4328)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F188F #488F18
analogous
#23188F #5F188F #8F1883
triadic
#5F188F #8F5F18 #188F5F
tetradic
#5F188F #8F2318 #488F18 #18838F
square
#5F188F #8F2318 #488F18 #18838F
split-complementary
#5F188F #838F18 #188F23
monochromatic
#190626 #3C0F5B #5F188F #8221C3 #A042DF

Accessibility & contrast

On white

10.43
#5F188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F188F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F188F#FFFFFF#000000##FFFFFF
##5F188F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#563855
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f188f;
/* rgb */ color: rgb(95, 24, 143);
/* oklch */ color: oklch(39.3% 0.180 306.4);
Tailwind
colors: {
  custom: {
    50: '#925fb1',
    500: '#5f188f',
    950: '#000000',
  },
}
SCSS
$custom: #5f188f;
$custom-light: #925fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f188f",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 275.798,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39345,
    "c": 0.17962,
    "h": 306.4
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#5F188F
secondary
#75C043
accent
#EE3A82
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F188F

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

Preview Lab → · Contrast checker → · Palette generator →

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