#5F188C#5F188C

#5F188C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.177 H 307.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5F188C
RGBrgb(95, 24, 140)
HSLhsl(277, 71%, 32%)
HSVhsv(277, 83%, 55%)
CMYKcmyk(32.1%, 82.9%, 0%, 45.1%)
CIE-LABlab(26.68, 50.34, -49.30)
CIE-LCHlch(26.68, 70.46, 315.60°)
OKLaboklab(39.09% 0.1075 -0.1403)
OKLCHoklch(39.09% 0.177 307.5)
XYZxyz(9.7786, 4.9797, 25.2519)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F188C #458C18
analogous
#25188C #5F188C #8C187F
triadic
#5F188C #8C5F18 #188C5F
tetradic
#5F188C #8C2518 #458C18 #187F8C
square
#5F188C #8C2518 #458C18 #187F8C
split-complementary
#5F188C #7F8C18 #188C25
monochromatic
#180624 #3C0F58 #5F188C #8221C0 #A140DE

Accessibility & contrast

On white

10.52
#5F188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F188C
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F188C#FFFFFF#000000##FFFFFF
##5F188C1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#573753
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f188c;
/* rgb */ color: rgb(95, 24, 140);
/* oklch */ color: oklch(39.1% 0.177 307.5);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5f188c',
    950: '#000000',
  },
}
SCSS
$custom: #5f188c;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f188c",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 276.724,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39088,
    "c": 0.17674,
    "h": 307.5
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

primary
#5F188C
secondary
#72BF41
accent
#ED3A80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F188C

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

Preview Lab → · Contrast checker → · Palette generator →

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