#5F187A#5F187A

#5F187A is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.160 H 314.5°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#5F187A
RGBrgb(95, 24, 122)
HSLhsl(283, 67%, 29%)
HSVhsv(283, 80%, 48%)
CMYKcmyk(22.1%, 80.3%, 0%, 52.2%)
CIE-LABlab(25.23, 46.37, -40.32)
CIE-LCHlch(25.23, 61.45, 318.99°)
OKLaboklab(37.63% 0.1118 -0.1139)
OKLCHoklch(37.63% 0.16 314.5)
XYZxyz(8.5582, 4.4916, 18.8247)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F187A #337A18
analogous
#2E187A #5F187A #7A1864
triadic
#5F187A #7A5F18 #187A5F
tetradic
#5F187A #7A2E18 #337A18 #18647A
square
#5F187A #7A2E18 #337A18 #18647A
split-complementary
#5F187A #647A18 #187A2E
monochromatic
#14051A #370E47 #5F187A #8722AD #AB35D7

Accessibility & contrast

On white

11.06
#5F187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F187A
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F187A#FFFFFF#000000##FFFFFF
##5F187A1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#113E78
Tritanopia (blue-blind)
#5C2F49
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f187a;
/* rgb */ color: rgb(95, 24, 122);
/* oklch */ color: oklch(37.6% 0.160 314.5);
Tailwind
colors: {
  custom: {
    50: '#905ea1',
    500: '#5f187a',
    950: '#000000',
  },
}
SCSS
$custom: #5f187a;
$custom-light: #905ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f187a",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 283.469,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37626,
    "c": 0.15957,
    "h": 314.5
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#5F187A
secondary
#5EAF3F
accent
#EA3E6D
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F187A

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

Preview Lab → · Contrast checker → · Palette generator →

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