#5F185E#5F185E

#5F185E is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.134 H 328.5°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5F185E
RGBrgb(95, 24, 94)
HSLhsl(301, 60%, 23%)
HSVhsv(301, 75%, 37%)
CMYKcmyk(0%, 74.7%, 1.1%, 62.7%)
CIE-LABlab(23.32, 40.76, -25.26)
CIE-LCHlch(23.32, 47.95, 328.21°)
OKLaboklab(35.65% 0.1142 -0.0699)
OKLCHoklch(35.65% 0.134 328.5)
XYZxyz(7.0663, 3.8948, 10.9671)
Luminance0.0389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F185E #185F19
analogous
#3C185F #5F185E #5F183A
triadic
#5F185E #5E5F18 #185E5F
tetradic
#5F185E #5F3C18 #185F19 #183A5F
square
#5F185E #5F3C18 #185F19 #183A5F
split-complementary
#5F185E #3A5F18 #185F3C
monochromatic
#180618 #2E0C2E #5F185E #90248E #C131BF

Accessibility & contrast

On white

11.81
#5F185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F185E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F185E#FFFFFF#000000##FFFFFF
##5F185E1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3260
Deuteranopia (green-blind)
#2B3B5C
Tritanopia (blue-blind)
#622239
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f185e;
/* rgb */ color: rgb(95, 24, 94);
/* oklch */ color: oklch(35.7% 0.134 328.5);
Tailwind
colors: {
  custom: {
    50: '#8f5d8c',
    500: '#5f185e',
    950: '#000000',
  },
}
SCSS
$custom: #5f185e;
$custom-light: #8f5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f185e",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 300.845,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35653,
    "c": 0.13385,
    "h": 328.5
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#5F185E
secondary
#3D953F
accent
#E34745
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F185E

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

Preview Lab → · Contrast checker → · Palette generator →

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