#5F188E#5F188E

#5F188E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.3% C 0.179 H 306.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5F188E
RGBrgb(95, 24, 142)
HSLhsl(276, 71%, 33%)
HSVhsv(276, 83%, 56%)
CMYKcmyk(33.1%, 83.1%, 0%, 44.3%)
CIE-LABlab(26.85, 50.79, -50.26)
CIE-LCHlch(26.85, 71.45, 315.30°)
OKLaboklab(39.26% 0.107 -0.1431)
OKLCHoklch(39.26% 0.179 306.8)
XYZxyz(9.9274, 5.0393, 26.0356)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F188E #478E18
analogous
#24188E #5F188E #8E1882
triadic
#5F188E #8E5F18 #188E5F
tetradic
#5F188E #8E2418 #478E18 #18828E
square
#5F188E #8E2418 #478E18 #18828E
split-complementary
#5F188E #828E18 #188E24
monochromatic
#190625 #3C0F5A #5F188E #8221C2 #A041DF

Accessibility & contrast

On white

10.46
#5F188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F188E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F188E#FFFFFF#000000##FFFFFF
##5F188E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#573854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f188e;
/* rgb */ color: rgb(95, 24, 142);
/* oklch */ color: oklch(39.3% 0.179 306.8);
Tailwind
colors: {
  custom: {
    50: '#925fb0',
    500: '#5f188e',
    950: '#000000',
  },
}
SCSS
$custom: #5f188e;
$custom-light: #925fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f188e",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 276.102,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39259,
    "c": 0.17866,
    "h": 306.8
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#5F188E
secondary
#74C042
accent
#EE3A82
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F188E

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

Preview Lab → · Contrast checker → · Palette generator →

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