#5B0F76#5B0F76

#5B0F76 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.163 H 314.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5B0F76
RGBrgb(91, 15, 118)
HSLhsl(284, 77%, 26%)
HSVhsv(284, 87%, 46%)
CMYKcmyk(22.9%, 87.3%, 0%, 53.7%)
CIE-LABlab(23.25, 47.68, -41.02)
CIE-LCHlch(23.25, 62.89, 319.29°)
OKLaboklab(36% 0.1144 -0.116)
OKLCHoklch(36% 0.163 314.6)
XYZxyz(7.7547, 3.8741, 17.4753)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F76 #2A760F
analogous
#270F76 #5B0F76 #760F5D
triadic
#5B0F76 #765B0F #0F765B
tetradic
#5B0F76 #76270F #2A760F #0F5D76
square
#5B0F76 #76270F #2A760F #0F5D76
split-complementary
#5B0F76 #5D760F #0F7627
monochromatic
#15031B #310840 #5B0F76 #8516AC #AF1DE2

Accessibility & contrast

On white

11.83
#5B0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F76
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F76#FFFFFF#000000##FFFFFF
##5B0F761.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#043974
Tritanopia (blue-blind)
#582A45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b0f76;
/* rgb */ color: rgb(91, 15, 118);
/* oklch */ color: oklch(36.0% 0.163 314.6);
Tailwind
colors: {
  custom: {
    50: '#8e5a9e',
    500: '#5b0f76',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f76;
$custom-light: #8e5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f76",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 284.272,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.16289,
    "h": 314.6
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#5B0F76
secondary
#53AD33
accent
#F43466
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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