#5B2F85#5B2F85

#5B2F85 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.140 H 304.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5B2F85
RGBrgb(91, 47, 133)
HSLhsl(271, 48%, 35%)
HSVhsv(271, 65%, 52%)
CMYKcmyk(31.6%, 64.7%, 0%, 47.8%)
CIE-LABlab(29.29, 37.35, -40.74)
CIE-LCHlch(29.29, 55.27, 312.52°)
OKLaboklab(40.65% 0.0791 -0.1154)
OKLCHoklch(40.65% 0.14 304.4)
XYZxyz(9.5636, 5.9507, 22.8305)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F85 #59852F
analogous
#302F85 #5B2F85 #852F84
triadic
#5B2F85 #855B2F #2F855B
tetradic
#5B2F85 #85302F #59852F #2F8485
square
#5B2F85 #85302F #59852F #2F8485
split-complementary
#5B2F85 #84852F #2F8530
monochromatic
#1D0F2B #3C1F58 #5B2F85 #7A3FB2 #9866C9

Accessibility & contrast

On white

9.59
#5B2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F85
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F85#FFFFFF#000000##FFFFFF
##5B2F851.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#184583
Tritanopia (blue-blind)
#534155
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2f85;
/* rgb */ color: rgb(91, 47, 133);
/* oklch */ color: oklch(40.7% 0.140 304.4);
Tailwind
colors: {
  custom: {
    50: '#8d6aa9',
    500: '#5b2f85',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f85;
$custom-light: #8d6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f85",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 270.698,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40654,
    "c": 0.13989,
    "h": 304.4
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#5B2F85
secondary
#87B060
accent
#D75092
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5B2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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