#5B0F4F#5B0F4F

#5B0F4F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.130 H 335.6°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#5B0F4F
RGBrgb(91, 15, 79)
HSLhsl(309, 72%, 21%)
HSVhsv(309, 84%, 36%)
CMYKcmyk(0%, 83.5%, 13.2%, 64.3%)
CIE-LABlab(20.56, 40.35, -19.63)
CIE-LCHlch(20.56, 44.87, 334.05°)
OKLaboklab(33.24% 0.1182 -0.0536)
OKLCHoklch(33.24% 0.13 335.6)
XYZxyz(5.8966, 3.1309, 7.6894)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F4F #0F5B1B
analogous
#410F5B #5B0F4F #5B0F29
triadic
#5B0F4F #4F5B0F #0F4F5B
tetradic
#5B0F4F #5B410F #0F5B1B #0F295B
square
#5B0F4F #5B410F #0F5B1B #0F295B
split-complementary
#5B0F4F #295B0F #0F5B41
monochromatic
#1A0417 #260621 #5B0F4F #90187D #C420AA

Accessibility & contrast

On white

12.92
#5B0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F4F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F4F#FFFFFF#000000##FFFFFF
##5B0F4F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#2C354D
Tritanopia (blue-blind)
#60162E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f4f;
/* rgb */ color: rgb(91, 15, 79);
/* oklch */ color: oklch(33.2% 0.130 335.6);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5b0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f4f;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f4f",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 309.474,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.12978,
    "h": 335.6
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#5B0F4F
secondary
#319541
accent
#EE5639
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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