#5F197F#5F197F

#5F197F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.163 H 312.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5F197F
RGBrgb(95, 25, 127)
HSLhsl(281, 67%, 30%)
HSVhsv(281, 80%, 50%)
CMYKcmyk(25.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(25.75, 47.09, -42.66)
CIE-LCHlch(25.75, 63.54, 317.82°)
OKLaboklab(38.11% 0.1099 -0.1208)
OKLCHoklch(38.11% 0.163 312.3)
XYZxyz(8.8970, 4.6607, 20.5055)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F197F #397F19
analogous
#2C197F #5F197F #7F196C
triadic
#5F197F #7F5F19 #197F5F
tetradic
#5F197F #7F2C19 #397F19 #196C7F
square
#5F197F #7F2C19 #397F19 #196C7F
split-complementary
#5F197F #6C7F19 #197F2C
monochromatic
#13051A #390F4C #5F197F #8523B2 #A73AD8

Accessibility & contrast

On white

10.87
#5F197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F197F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F197F#FFFFFF#000000##FFFFFF
##5F197F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#073E7D
Tritanopia (blue-blind)
#5B324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f197f;
/* rgb */ color: rgb(95, 25, 127);
/* oklch */ color: oklch(38.1% 0.163 312.3);
Tailwind
colors: {
  custom: {
    50: '#905fa5',
    500: '#5f197f',
    950: '#000000',
  },
}
SCSS
$custom: #5f197f;
$custom-light: #905fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f197f",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 281.176,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38107,
    "c": 0.16328,
    "h": 312.3
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#5F197F
secondary
#65B341
accent
#EA3E74
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F197F

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

Preview Lab → · Contrast checker → · Palette generator →

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