#5F0F76#5F0F76

#5F0F76 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.164 H 316.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5F0F76
RGBrgb(95, 15, 118)
HSLhsl(287, 77%, 26%)
HSVhsv(287, 87%, 46%)
CMYKcmyk(19.5%, 87.3%, 0%, 53.7%)
CIE-LABlab(23.94, 48.40, -39.86)
CIE-LCHlch(23.94, 62.70, 320.53°)
OKLaboklab(36.62% 0.1198 -0.1125)
OKLCHoklch(36.62% 0.164 316.8)
XYZxyz(8.1597, 4.0829, 17.4943)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F76 #26760F
analogous
#2B0F76 #5F0F76 #760F59
triadic
#5F0F76 #765F0F #0F765F
tetradic
#5F0F76 #762B0F #26760F #0F5976
square
#5F0F76 #762B0F #26760F #0F5976
split-complementary
#5F0F76 #59760F #0F762B
monochromatic
#16031B #330840 #5F0F76 #8B16AC #B61DE2

Accessibility & contrast

On white

11.56
#5F0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F76
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F76#FFFFFF#000000##FFFFFF
##5F0F761.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#0F3B74
Tritanopia (blue-blind)
#5E2945
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f0f76;
/* rgb */ color: rgb(95, 15, 118);
/* oklch */ color: oklch(36.6% 0.164 316.8);
Tailwind
colors: {
  custom: {
    50: '#905b9e',
    500: '#5f0f76',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f76;
$custom-light: #905b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f76",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 286.602,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.16429,
    "h": 316.8
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#5F0F76
secondary
#4FAD33
accent
#F4345F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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