#5F0F5B#5F0F5B

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

Color values

HEX#5F0F5B
RGBrgb(95, 15, 91)
HSLhsl(303, 73%, 22%)
HSVhsv(303, 84%, 37%)
CMYKcmyk(0%, 84.2%, 4.2%, 62.7%)
CIE-LABlab(22.05, 43.32, -25.28)
CIE-LCHlch(22.05, 50.16, 329.73°)
OKLaboklab(34.69% 0.123 -0.0698)
OKLCHoklch(34.69% 0.141 330.4)
XYZxyz(6.7784, 3.5304, 10.2199)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F5B #0F5F13
analogous
#3B0F5F #5F0F5B #5F0F33
triadic
#5F0F5B #5B5F0F #0F5B5F
tetradic
#5F0F5B #5F3B0F #0F5F13 #0F335F
square
#5F0F5B #5F3B0F #0F5F13 #0F335F
split-complementary
#5F0F5B #335F0F #0F5F3B
monochromatic
#1A0419 #2A0728 #5F0F5B #94178E #C920C0

Accessibility & contrast

On white

12.31
#5F0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F0F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F5B
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F5B#FFFFFF#000000##FFFFFF
##5F0F5B1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f0f5b;
/* rgb */ color: rgb(95, 15, 91);
/* oklch */ color: oklch(34.7% 0.141 330.4);
Tailwind
colors: {
  custom: {
    50: '#90598a',
    500: '#5f0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f5b;
$custom-light: #90598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f5b",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 303,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34688,
    "c": 0.14147,
    "h": 330.4
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#5F0F5B
secondary
#329837
accent
#EF4238
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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