#5F187F#5F187F

#5F187F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.0% C 0.164 H 312.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5F187F
RGBrgb(95, 24, 127)
HSLhsl(281, 68%, 30%)
HSVhsv(281, 81%, 50%)
CMYKcmyk(25.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(25.62, 47.45, -42.87)
CIE-LCHlch(25.62, 63.95, 317.90°)
OKLaboklab(38.02% 0.1108 -0.1214)
OKLCHoklch(38.02% 0.164 312.4)
XYZxyz(8.8760, 4.6187, 20.4985)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F187F #387F18
analogous
#2B187F #5F187F #7F186C
triadic
#5F187F #7F5F18 #187F5F
tetradic
#5F187F #7F2B18 #387F18 #186C7F
square
#5F187F #7F2B18 #387F18 #186C7F
split-complementary
#5F187F #6C7F18 #187F2B
monochromatic
#13051A #380E4C #5F187F #8622B2 #A738D9

Accessibility & contrast

On white

10.92
#5F187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F187F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F187F#FFFFFF#000000##FFFFFF
##5F187F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#053E7D
Tritanopia (blue-blind)
#5B314C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f187f;
/* rgb */ color: rgb(95, 24, 127);
/* oklch */ color: oklch(38.0% 0.164 312.4);
Tailwind
colors: {
  custom: {
    50: '#905ea5',
    500: '#5f187f',
    950: '#000000',
  },
}
SCSS
$custom: #5f187f;
$custom-light: #905ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f187f",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 281.359,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38018,
    "c": 0.16431,
    "h": 312.4
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#5F187F
secondary
#63B33F
accent
#EB3D73
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F187F

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

Preview Lab → · Contrast checker → · Palette generator →

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