#5F188D#5F188D

#5F188D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.178 H 307.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5F188D
RGBrgb(95, 24, 141)
HSLhsl(276, 71%, 32%)
HSVhsv(276, 83%, 55%)
CMYKcmyk(32.6%, 83%, 0%, 44.7%)
CIE-LABlab(26.76, 50.56, -49.78)
CIE-LCHlch(26.76, 70.95, 315.44°)
OKLaboklab(39.17% 0.1073 -0.1417)
OKLCHoklch(39.17% 0.178 307.1)
XYZxyz(9.8526, 5.0094, 25.6420)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F188D #468D18
analogous
#24188D #5F188D #8D1881
triadic
#5F188D #8D5F18 #188D5F
tetradic
#5F188D #8D2418 #468D18 #18818D
square
#5F188D #8D2418 #468D18 #18818D
split-complementary
#5F188D #818D18 #188D24
monochromatic
#190624 #3C0F59 #5F188D #8221C1 #A141DF

Accessibility & contrast

On white

10.49
#5F188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F188D
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F188D#FFFFFF#000000##FFFFFF
##5F188D1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#573754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f188d;
/* rgb */ color: rgb(95, 24, 141);
/* oklch */ color: oklch(39.2% 0.178 307.1);
Tailwind
colors: {
  custom: {
    50: '#925faf',
    500: '#5f188d',
    950: '#000000',
  },
}
SCSS
$custom: #5f188d;
$custom-light: #925faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f188d",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 276.41,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39173,
    "c": 0.1777,
    "h": 307.1
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#5F188D
secondary
#73BF42
accent
#EE3A81
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F188D

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

Preview Lab → · Contrast checker → · Palette generator →

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