#5B0F53#5B0F53

#5B0F53 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.133 H 333.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#5B0F53
RGBrgb(91, 15, 83)
HSLhsl(306, 72%, 21%)
HSVhsv(306, 84%, 36%)
CMYKcmyk(0%, 83.5%, 8.8%, 64.3%)
CIE-LABlab(20.79, 41.01, -21.97)
CIE-LCHlch(20.79, 46.53, 331.82°)
OKLaboklab(33.48% 0.1184 -0.0604)
OKLCHoklch(33.48% 0.133 333)
XYZxyz(6.0466, 3.1909, 8.4794)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F53 #0F5B17
analogous
#3D0F5B #5B0F53 #5B0F2D
triadic
#5B0F53 #535B0F #0F535B
tetradic
#5B0F53 #5B3D0F #0F5B17 #0F2D5B
square
#5B0F53 #5B3D0F #0F5B17 #0F2D5B
split-complementary
#5B0F53 #2D5B0F #0F5B3D
monochromatic
#1A0418 #260623 #5B0F53 #901883 #C420B3

Accessibility & contrast

On white

12.82
#5B0F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B0F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F53
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F53#FFFFFF#000000##FFFFFF
##5B0F531.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B55
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#5F1830
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f53;
/* rgb */ color: rgb(91, 15, 83);
/* oklch */ color: oklch(33.5% 0.133 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5b0f53',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f53;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f53",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 306.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.13291,
    "h": 333
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#5B0F53
secondary
#31953C
accent
#EE4C39
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F53

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

Preview Lab → · Contrast checker → · Palette generator →

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