#5F188A#5F188A

#5F188A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.175 H 308.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5F188A
RGBrgb(95, 24, 138)
HSLhsl(277, 70%, 32%)
HSVhsv(277, 83%, 54%)
CMYKcmyk(31.2%, 82.6%, 0%, 45.9%)
CIE-LABlab(26.51, 49.88, -48.32)
CIE-LCHlch(26.51, 69.45, 315.91°)
OKLaboklab(38.92% 0.1081 -0.1374)
OKLCHoklch(38.92% 0.175 308.2)
XYZxyz(9.6324, 4.9213, 24.4823)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F188A #438A18
analogous
#26188A #5F188A #8A187C
triadic
#5F188A #8A5F18 #188A5F
tetradic
#5F188A #8A2618 #438A18 #187C8A
square
#5F188A #8A2618 #438A18 #187C8A
split-complementary
#5F188A #7C8A18 #188A26
monochromatic
#170622 #3B0F56 #5F188A #8321BE #A23FDE

Accessibility & contrast

On white

10.58
#5F188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F188A
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F188A#FFFFFF#000000##FFFFFF
##5F188A1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#583652
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f188a;
/* rgb */ color: rgb(95, 24, 138);
/* oklch */ color: oklch(38.9% 0.175 308.2);
Tailwind
colors: {
  custom: {
    50: '#915fad',
    500: '#5f188a',
    950: '#000000',
  },
}
SCSS
$custom: #5f188a;
$custom-light: #915fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f188a",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 277.368,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38919,
    "c": 0.17482,
    "h": 308.2
  },
  "luminance": 0.04921
}

Semantic roles & 50–950 ramp

primary
#5F188A
secondary
#70BD40
accent
#ED3B7E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F188A

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

Preview Lab → · Contrast checker → · Palette generator →

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