#5B2F87#5B2F87

#5B2F87 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.142 H 303.7°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5B2F87
RGBrgb(91, 47, 135)
HSLhsl(270, 48%, 36%)
HSVhsv(270, 65%, 53%)
CMYKcmyk(32.6%, 65.2%, 0%, 47.1%)
CIE-LABlab(29.43, 37.87, -41.75)
CIE-LCHlch(29.43, 56.37, 312.21°)
OKLaboklab(40.8% 0.079 -0.1184)
OKLCHoklch(40.8% 0.142 303.7)
XYZxyz(9.7031, 6.0065, 23.5652)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F87 #5B872F
analogous
#2F2F87 #5B2F87 #872F87
triadic
#5B2F87 #875B2F #2F875B
tetradic
#5B2F87 #872F2F #5B872F #2F8787
square
#5B2F87 #872F2F #5B872F #2F8787
split-complementary
#5B2F87 #87872F #2F872F
monochromatic
#1E0F2C #3C1F5A #5B2F87 #7A3FB4 #9866CA

Accessibility & contrast

On white

9.54
#5B2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F87
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F87#FFFFFF#000000##FFFFFF
##5B2F871.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#534256
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2f87;
/* rgb */ color: rgb(91, 47, 135);
/* oklch */ color: oklch(40.8% 0.142 303.7);
Tailwind
colors: {
  custom: {
    50: '#8d6aaa',
    500: '#5b2f87',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f87;
$custom-light: #8d6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f87",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 270,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40802,
    "c": 0.14229,
    "h": 303.7
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#5B2F87
secondary
#89B161
accent
#D85094
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5B2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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