#5F197E#5F197E

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

Color values

HEX#5F197E
RGBrgb(95, 25, 126)
HSLhsl(282, 67%, 30%)
HSVhsv(282, 80%, 49%)
CMYKcmyk(24.6%, 80.2%, 0%, 50.6%)
CIE-LABlab(25.67, 46.87, -42.16)
CIE-LCHlch(25.67, 63.04, 318.03°)
OKLaboklab(38.03% 0.1101 -0.1193)
OKLCHoklch(38.03% 0.162 312.7)
XYZxyz(8.8322, 4.6348, 20.1640)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F197E #387E19
analogous
#2D197E #5F197E #7E196B
triadic
#5F197E #7E5F19 #197E5F
tetradic
#5F197E #7E2D19 #387E19 #196B7E
square
#5F197E #7E2D19 #387E19 #196B7E
split-complementary
#5F197E #6B7E19 #197E2D
monochromatic
#13051A #380F4B #5F197E #8623B1 #A73AD8

Accessibility & contrast

On white

10.90
#5F197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F197E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F197E#FFFFFF#000000##FFFFFF
##5F197E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#093E7C
Tritanopia (blue-blind)
#5B314B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f197e;
/* rgb */ color: rgb(95, 25, 126);
/* oklch */ color: oklch(38.0% 0.162 312.7);
Tailwind
colors: {
  custom: {
    50: '#905fa4',
    500: '#5f197e',
    950: '#000000',
  },
}
SCSS
$custom: #5f197e;
$custom-light: #905fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f197e",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 281.584,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38028,
    "c": 0.16231,
    "h": 312.7
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#5F197E
secondary
#63B241
accent
#EA3E73
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F197E

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

Preview Lab → · Contrast checker → · Palette generator →

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