#5F197B#5F197B

#5F197B is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.159 H 313.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5F197B
RGBrgb(95, 25, 123)
HSLhsl(283, 66%, 29%)
HSVhsv(283, 80%, 48%)
CMYKcmyk(22.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(25.44, 46.22, -40.63)
CIE-LCHlch(25.44, 61.54, 318.68°)
OKLaboklab(37.79% 0.1107 -0.1148)
OKLCHoklch(37.79% 0.159 313.9)
XYZxyz(8.6415, 4.5585, 19.1597)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F197B #357B19
analogous
#2E197B #5F197B #7B1966
triadic
#5F197B #7B5F19 #197B5F
tetradic
#5F197B #7B2E19 #357B19 #19667B
square
#5F197B #7B2E19 #357B19 #19667B
split-complementary
#5F197B #667B19 #197B2E
monochromatic
#140519 #380F48 #5F197B #8623AE #A938D7

Accessibility & contrast

On white

10.99
#5F197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F197B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F197B#FFFFFF#000000##FFFFFF
##5F197B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#103E79
Tritanopia (blue-blind)
#5C3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f197b;
/* rgb */ color: rgb(95, 25, 123);
/* oklch */ color: oklch(37.8% 0.159 313.9);
Tailwind
colors: {
  custom: {
    50: '#905fa2',
    500: '#5f197b',
    950: '#000000',
  },
}
SCSS
$custom: #5f197b;
$custom-light: #905fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f197b",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 282.857,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37793,
    "c": 0.15944,
    "h": 313.9
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#5F197B
secondary
#60AF40
accent
#E93F6F
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F197B

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

Preview Lab → · Contrast checker → · Palette generator →

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