#5F1968#5F1968

#5F1968 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.142 H 322.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5F1968
RGBrgb(95, 25, 104)
HSLhsl(293, 61%, 25%)
HSVhsv(293, 76%, 41%)
CMYKcmyk(8.7%, 76%, 0%, 59.2%)
CIE-LABlab(24.09, 42.28, -30.59)
CIE-LCHlch(24.09, 52.18, 324.11°)
OKLaboklab(36.41% 0.1129 -0.0854)
OKLCHoklch(36.41% 0.142 322.9)
XYZxyz(7.5654, 4.1281, 13.4923)
Luminance0.0413 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1968 #226819
analogous
#381968 #5F1968 #681949
triadic
#5F1968 #685F19 #19685F
tetradic
#5F1968 #683819 #226819 #194968
square
#5F1968 #683819 #226819 #194968
split-complementary
#5F1968 #496819 #196838
monochromatic
#170619 #320D37 #5F1968 #8C2599 #B931CB

Accessibility & contrast

On white

11.50
#5F1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1968
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1968#FFFFFF#000000##FFFFFF
##5F19681.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346A
Deuteranopia (green-blind)
#253C66
Tritanopia (blue-blind)
#60273F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1968;
/* rgb */ color: rgb(95, 25, 104);
/* oklch */ color: oklch(36.4% 0.142 322.9);
Tailwind
colors: {
  custom: {
    50: '#8f5e93',
    500: '#5f1968',
    950: '#000000',
  },
}
SCSS
$custom: #5f1968;
$custom-light: #8f5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1968",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 293.165,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36408,
    "c": 0.14157,
    "h": 322.9
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#5F1968
secondary
#4A9E3F
accent
#E44356
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1968

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

Preview Lab → · Contrast checker → · Palette generator →

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