#5F0F6A#5F0F6A

#5F0F6A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.154 H 322.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5F0F6A
RGBrgb(95, 15, 106)
HSLhsl(293, 75%, 24%)
HSVhsv(293, 86%, 42%)
CMYKcmyk(10.4%, 85.8%, 0%, 58.4%)
CIE-LABlab(23.05, 46.05, -33.55)
CIE-LCHlch(23.05, 56.98, 323.92°)
OKLaboklab(35.72% 0.1219 -0.094)
OKLCHoklch(35.72% 0.154 322.4)
XYZxyz(7.4914, 3.8156, 13.9748)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F6A #1A6A0F
analogous
#310F6A #5F0F6A #6A0F47
triadic
#5F0F6A #6A5F0F #0F6A5F
tetradic
#5F0F6A #6A310F #1A6A0F #0F476A
square
#5F0F6A #6A310F #1A6A0F #0F476A
split-complementary
#5F0F6A #476A0F #0F6A31
monochromatic
#18041B #2F0734 #5F0F6A #8F17A0 #BF1ED5

Accessibility & contrast

On white

11.91
#5F0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F6A
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F6A#FFFFFF#000000##FFFFFF
##5F0F6A1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#1E3A68
Tritanopia (blue-blind)
#60233E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f0f6a;
/* rgb */ color: rgb(95, 15, 106);
/* oklch */ color: oklch(35.7% 0.154 322.4);
Tailwind
colors: {
  custom: {
    50: '#905a95',
    500: '#5f0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f6a;
$custom-light: #905a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f6a",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 292.747,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35715,
    "c": 0.15392,
    "h": 322.4
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#5F0F6A
secondary
#40A232
accent
#F2364D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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