#5B2F8A#5B2F8A

#5B2F8A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.146 H 302.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5B2F8A
RGBrgb(91, 47, 138)
HSLhsl(269, 49%, 36%)
HSVhsv(269, 66%, 54%)
CMYKcmyk(34.1%, 65.9%, 0%, 45.9%)
CIE-LABlab(29.64, 38.65, -43.27)
CIE-LCHlch(29.64, 58.02, 311.77°)
OKLaboklab(41.03% 0.0787 -0.1228)
OKLCHoklch(41.03% 0.146 302.7)
XYZxyz(9.9173, 6.0921, 24.6933)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F8A #5E8A2F
analogous
#2F318A #5B2F8A #892F8A
triadic
#5B2F8A #8A5B2F #2F8A5B
tetradic
#5B2F8A #8A2F31 #5E8A2F #2F8A89
square
#5B2F8A #8A2F31 #5E8A2F #2F8A89
split-complementary
#5B2F8A #8A892F #318A2F
monochromatic
#1F102F #3D1F5C #5B2F8A #793FB8 #9868CC

Accessibility & contrast

On white

9.47
#5B2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F8A
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F8A#FFFFFF#000000##FFFFFF
##5B2F8A1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#0F4688
Tritanopia (blue-blind)
#524358
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2f8a;
/* rgb */ color: rgb(91, 47, 138);
/* oklch */ color: oklch(41.0% 0.146 302.7);
Tailwind
colors: {
  custom: {
    50: '#8d6aad',
    500: '#5b2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f8a;
$custom-light: #8d6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f8a",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 269.011,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41025,
    "c": 0.14589,
    "h": 302.7
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#5B2F8A
secondary
#8CB362
accent
#D94F96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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