#5F1155#5F1155

#5F1155 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.135 H 334.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#5F1155
RGBrgb(95, 17, 85)
HSLhsl(308, 70%, 22%)
HSVhsv(308, 82%, 37%)
CMYKcmyk(0%, 82.1%, 10.5%, 62.7%)
CIE-LABlab(21.91, 41.69, -21.50)
CIE-LCHlch(21.91, 46.91, 332.71°)
OKLaboklab(34.47% 0.1211 -0.0589)
OKLCHoklch(34.47% 0.135 334)
XYZxyz(6.5595, 3.4903, 8.9208)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1155 #115F1B
analogous
#42115F #5F1155 #5F112E
triadic
#5F1155 #555F11 #11555F
tetradic
#5F1155 #5F4211 #115F1B #112E5F
square
#5F1155 #5F4211 #115F1B #112E5F
split-complementary
#5F1155 #2E5F11 #115F42
monochromatic
#1A0517 #2B0827 #5F1155 #931A83 #C724B2

Accessibility & contrast

On white

12.37
#5F1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1155
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1155#FFFFFF#000000##FFFFFF
##5F11551.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D57
Deuteranopia (green-blind)
#2D3853
Tritanopia (blue-blind)
#641932
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1155;
/* rgb */ color: rgb(95, 17, 85);
/* oklch */ color: oklch(34.5% 0.135 334.0);
Tailwind
colors: {
  custom: {
    50: '#8f5985',
    500: '#5f1155',
    950: '#000000',
  },
}
SCSS
$custom: #5f1155;
$custom-light: #8f5985;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1155",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 307.692,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34469,
    "c": 0.13467,
    "h": 334
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#5F1155
secondary
#349841
accent
#EC523B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1155

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

Preview Lab → · Contrast checker → · Palette generator →

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