#5B0F68#5B0F68

#5B0F68 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.151 H 321.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5B0F68
RGBrgb(91, 15, 104)
HSLhsl(291, 75%, 23%)
HSVhsv(291, 86%, 41%)
CMYKcmyk(12.5%, 85.6%, 0%, 59.2%)
CIE-LABlab(22.18, 44.85, -33.69)
CIE-LCHlch(22.18, 56.09, 323.09°)
OKLaboklab(34.91% 0.1171 -0.0945)
OKLCHoklch(34.91% 0.151 321.1)
XYZxyz(6.9836, 3.5657, 13.4144)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F68 #1C680F
analogous
#2E0F68 #5B0F68 #680F48
triadic
#5B0F68 #685B0F #0F685B
tetradic
#5B0F68 #682E0F #1C680F #0F4868
square
#5B0F68 #682E0F #1C680F #0F4868
split-complementary
#5B0F68 #48680F #0F682E
monochromatic
#17041B #2C0733 #5B0F68 #8A179D #B91ED3

Accessibility & contrast

On white

12.26
#5B0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B0F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F68
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F68#FFFFFF#000000##FFFFFF
##5B0F681.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#1B3866
Tritanopia (blue-blind)
#5C233C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b0f68;
/* rgb */ color: rgb(91, 15, 104);
/* oklch */ color: oklch(34.9% 0.151 321.1);
Tailwind
colors: {
  custom: {
    50: '#8d5994',
    500: '#5b0f68',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f68;
$custom-light: #8d5994;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f68",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 291.236,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34914,
    "c": 0.15051,
    "h": 321.1
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#5B0F68
secondary
#42A132
accent
#F13652
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B0F68

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

Preview Lab → · Contrast checker → · Palette generator →

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