#5F197C#5F197C

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

Color values

HEX#5F197C
RGBrgb(95, 25, 124)
HSLhsl(282, 66%, 29%)
HSVhsv(282, 80%, 49%)
CMYKcmyk(23.4%, 79.8%, 0%, 51.4%)
CIE-LABlab(25.51, 46.43, -41.14)
CIE-LCHlch(25.51, 62.04, 318.46°)
OKLaboklab(37.87% 0.1105 -0.1163)
OKLCHoklch(37.87% 0.16 313.5)
XYZxyz(8.7044, 4.5837, 19.4911)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F197C #367C19
analogous
#2E197C #5F197C #7C1968
triadic
#5F197C #7C5F19 #197C5F
tetradic
#5F197C #7C2E19 #367C19 #19687C
square
#5F197C #7C2E19 #367C19 #19687C
split-complementary
#5F197C #687C19 #197C2E
monochromatic
#140519 #380F49 #5F197C #8623AF #A938D7

Accessibility & contrast

On white

10.96
#5F197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F197C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F197C#FFFFFF#000000##FFFFFF
##5F197C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#0E3E7A
Tritanopia (blue-blind)
#5C304A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f197c;
/* rgb */ color: rgb(95, 25, 124);
/* oklch */ color: oklch(37.9% 0.160 313.5);
Tailwind
colors: {
  custom: {
    50: '#905fa3',
    500: '#5f197c',
    950: '#000000',
  },
}
SCSS
$custom: #5f197c;
$custom-light: #905fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f197c",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 282.424,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37871,
    "c": 0.1604,
    "h": 313.5
  },
  "luminance": 0.04583
}

Semantic roles & 50–950 ramp

primary
#5F197C
secondary
#61B040
accent
#E93E71
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F197C

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

Preview Lab → · Contrast checker → · Palette generator →

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