#5F1973#5F1973

#5F1973 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.2% C 0.152 H 317.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5F1973
RGBrgb(95, 25, 115)
HSLhsl(287, 64%, 27%)
HSVhsv(287, 78%, 45%)
CMYKcmyk(17.4%, 78.3%, 0%, 54.9%)
CIE-LABlab(24.85, 44.52, -36.48)
CIE-LCHlch(24.85, 57.55, 320.67°)
OKLaboklab(37.19% 0.1119 -0.1026)
OKLCHoklch(37.19% 0.152 317.5)
XYZxyz(8.1610, 4.3663, 16.6292)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1973 #2D7319
analogous
#321973 #5F1973 #73195A
triadic
#5F1973 #735F19 #19735F
tetradic
#5F1973 #733219 #2D7319 #195A73
square
#5F1973 #733219 #2D7319 #195A73
split-complementary
#5F1973 #5A7319 #197332
monochromatic
#150519 #350E41 #5F1973 #8924A5 #AF34D3

Accessibility & contrast

On white

11.21
#5F1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1973
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1973#FFFFFF#000000##FFFFFF
##5F19731.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#1C3D71
Tritanopia (blue-blind)
#5E2C45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1973;
/* rgb */ color: rgb(95, 25, 115);
/* oklch */ color: oklch(37.2% 0.152 317.5);
Tailwind
colors: {
  custom: {
    50: '#905e9c',
    500: '#5f1973',
    950: '#000000',
  },
}
SCSS
$custom: #5f1973;
$custom-light: #905e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1973",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 286.667,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37188,
    "c": 0.15184,
    "h": 317.5
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#5F1973
secondary
#57A840
accent
#E74166
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1973

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

Preview Lab → · Contrast checker → · Palette generator →

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