#5B0F6A#5B0F6A

#5B0F6A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.152 H 320.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5B0F6A
RGBrgb(91, 15, 106)
HSLhsl(290, 75%, 24%)
HSVhsv(290, 86%, 42%)
CMYKcmyk(14.2%, 85.8%, 0%, 58.4%)
CIE-LABlab(22.33, 45.24, -34.76)
CIE-LCHlch(22.33, 57.05, 322.47°)
OKLaboklab(35.06% 0.1168 -0.0976)
OKLCHoklch(35.06% 0.152 320.1)
XYZxyz(7.0864, 3.6068, 13.9558)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F6A #1E6A0F
analogous
#2D0F6A #5B0F6A #6A0F4B
triadic
#5B0F6A #6A5B0F #0F6A5B
tetradic
#5B0F6A #6A2D0F #1E6A0F #0F4B6A
square
#5B0F6A #6A2D0F #1E6A0F #0F4B6A
split-complementary
#5B0F6A #4B6A0F #0F6A2D
monochromatic
#17041B #2D0734 #5B0F6A #8917A0 #B71ED5

Accessibility & contrast

On white

12.20
#5B0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F6A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F6A#FFFFFF#000000##FFFFFF
##5B0F6A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#193868
Tritanopia (blue-blind)
#5B243E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b0f6a;
/* rgb */ color: rgb(91, 15, 106);
/* oklch */ color: oklch(35.1% 0.152 320.1);
Tailwind
colors: {
  custom: {
    50: '#8d5995',
    500: '#5b0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f6a;
$custom-light: #8d5995;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f6a",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 290.11,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35064,
    "c": 0.15226,
    "h": 320.1
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#5B0F6A
secondary
#45A232
accent
#F23655
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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