#5F187D#5F187D

#5F187D is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.162 H 313.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5F187D
RGBrgb(95, 24, 125)
HSLhsl(282, 68%, 29%)
HSVhsv(282, 81%, 49%)
CMYKcmyk(24%, 80.8%, 0%, 51%)
CIE-LABlab(25.46, 47.02, -41.86)
CIE-LCHlch(25.46, 62.95, 318.32°)
OKLaboklab(37.86% 0.1112 -0.1184)
OKLCHoklch(37.86% 0.162 313.2)
XYZxyz(8.7470, 4.5671, 19.8188)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F187D #367D18
analogous
#2D187D #5F187D #7D1869
triadic
#5F187D #7D5F18 #187D5F
tetradic
#5F187D #7D2D18 #367D18 #18697D
square
#5F187D #7D2D18 #367D18 #18697D
split-complementary
#5F187D #697D18 #187D2D
monochromatic
#14051A #380E4A #5F187D #8622B0 #A937D9

Accessibility & contrast

On white

10.98
#5F187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F187D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F187D#FFFFFF#000000##FFFFFF
##5F187D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#0A3E7B
Tritanopia (blue-blind)
#5C304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f187d;
/* rgb */ color: rgb(95, 24, 125);
/* oklch */ color: oklch(37.9% 0.162 313.2);
Tailwind
colors: {
  custom: {
    50: '#905ea3',
    500: '#5f187d',
    950: '#000000',
  },
}
SCSS
$custom: #5f187d;
$custom-light: #905ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f187d",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 282.178,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3786,
    "c": 0.1624,
    "h": 313.2
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#5F187D
secondary
#61B23F
accent
#EB3D71
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F187D

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

Preview Lab → · Contrast checker → · Palette generator →

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