#5F0E5B#5F0E5B

#5F0E5B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.142 H 330.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5F0E5B
RGBrgb(95, 14, 91)
HSLhsl(303, 74%, 21%)
HSVhsv(303, 85%, 37%)
CMYKcmyk(0%, 85.3%, 4.2%, 62.7%)
CIE-LABlab(21.95, 43.61, -25.44)
CIE-LCHlch(21.95, 50.49, 329.74°)
OKLaboklab(34.62% 0.1239 -0.0703)
OKLCHoklch(34.62% 0.142 330.4)
XYZxyz(6.7647, 3.5029, 10.2153)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0E5B #0E5F12
analogous
#3B0E5F #5F0E5B #5F0E33
triadic
#5F0E5B #5B5F0E #0E5B5F
tetradic
#5F0E5B #5F3B0E #0E5F12 #0E335F
square
#5F0E5B #5F3B0E #0E5F12 #0E335F
split-complementary
#5F0E5B #335F0E #0E5F3B
monochromatic
#1B041A #2A0628 #5F0E5B #94168E #CA1EC1

Accessibility & contrast

On white

12.35
#5F0E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F0E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0E5B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0E5B#FFFFFF#000000##FFFFFF
##5F0E5B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5D
Deuteranopia (green-blind)
#293859
Tritanopia (blue-blind)
#631A35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f0e5b;
/* rgb */ color: rgb(95, 14, 91);
/* oklch */ color: oklch(34.6% 0.142 330.4);
Tailwind
colors: {
  custom: {
    50: '#90598a',
    500: '#5f0e5b',
    950: '#000000',
  },
}
SCSS
$custom: #5f0e5b;
$custom-light: #90598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0e5b",
  "rgb": {
    "r": 95,
    "g": 14,
    "b": 91
  },
  "hsl": {
    "h": 302.963,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34617,
    "c": 0.14241,
    "h": 330.4
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#5F0E5B
secondary
#309935
accent
#F14037
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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