#5F197D#5F197D

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

Color values

HEX#5F197D
RGBrgb(95, 25, 125)
HSLhsl(282, 67%, 29%)
HSVhsv(282, 80%, 49%)
CMYKcmyk(24%, 80%, 0%, 51%)
CIE-LABlab(25.59, 46.65, -41.65)
CIE-LCHlch(25.59, 62.54, 318.24°)
OKLaboklab(37.95% 0.1103 -0.1178)
OKLCHoklch(37.95% 0.161 313.1)
XYZxyz(8.7680, 4.6091, 19.8258)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F197D #377D19
analogous
#2D197D #5F197D #7D1969
triadic
#5F197D #7D5F19 #197D5F
tetradic
#5F197D #7D2D19 #377D19 #19697D
square
#5F197D #7D2D19 #377D19 #19697D
split-complementary
#5F197D #697D19 #197D2D
monochromatic
#13051A #380F4A #5F197D #8623B0 #A839D7

Accessibility & contrast

On white

10.93
#5F197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F197D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F197D#FFFFFF#000000##FFFFFF
##5F197D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#5C314B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f197d;
/* rgb */ color: rgb(95, 25, 125);
/* oklch */ color: oklch(37.9% 0.161 313.1);
Tailwind
colors: {
  custom: {
    50: '#905fa3',
    500: '#5f197d',
    950: '#000000',
  },
}
SCSS
$custom: #5f197d;
$custom-light: #905fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f197d",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 282,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37949,
    "c": 0.16136,
    "h": 313.1
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#5F197D
secondary
#62B140
accent
#EA3E72
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F197D

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

Preview Lab → · Contrast checker → · Palette generator →

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