#5F187C#5F187C

#5F187C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.161 H 313.6°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5F187C
RGBrgb(95, 24, 124)
HSLhsl(283, 68%, 29%)
HSVhsv(283, 81%, 49%)
CMYKcmyk(23.4%, 80.6%, 0%, 51.4%)
CIE-LABlab(25.39, 46.80, -41.35)
CIE-LCHlch(25.39, 62.45, 318.54°)
OKLaboklab(37.78% 0.1114 -0.1169)
OKLCHoklch(37.78% 0.161 313.6)
XYZxyz(8.6834, 4.5417, 19.4841)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F187C #357C18
analogous
#2D187C #5F187C #7C1867
triadic
#5F187C #7C5F18 #187C5F
tetradic
#5F187C #7C2D18 #357C18 #18677C
square
#5F187C #7C2D18 #357C18 #18677C
split-complementary
#5F187C #677C18 #187C2D
monochromatic
#14051A #380E49 #5F187C #8622AF #A936D8

Accessibility & contrast

On white

11.01
#5F187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F187C
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F187C#FFFFFF#000000##FFFFFF
##5F187C1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#0D3E7A
Tritanopia (blue-blind)
#5C304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f187c;
/* rgb */ color: rgb(95, 24, 124);
/* oklch */ color: oklch(37.8% 0.161 313.6);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5f187c',
    950: '#000000',
  },
}
SCSS
$custom: #5f187c;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f187c",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 282.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37781,
    "c": 0.16146,
    "h": 313.6
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#5F187C
secondary
#60B13F
accent
#EA3D70
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F187C

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

Preview Lab → · Contrast checker → · Palette generator →

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