#5B2F9D#5B2F9D

#5B2F9D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.168 H 296.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5B2F9D
RGBrgb(91, 47, 157)
HSLhsl(264, 54%, 40%)
HSVhsv(264, 70%, 62%)
CMYKcmyk(42%, 70.1%, 0%, 38.4%)
CIE-LABlab(31.09, 43.70, -52.58)
CIE-LCHlch(31.09, 68.37, 309.73°)
OKLaboklab(42.52% 0.0763 -0.1502)
OKLCHoklch(42.52% 0.168 296.9)
XYZxyz(11.4151, 6.6913, 32.5819)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F9D #719D2F
analogous
#2F3A9D #5B2F9D #922F9D
triadic
#5B2F9D #9D5B2F #2F9D5B
tetradic
#5B2F9D #9D2F3A #719D2F #2F9D92
square
#5B2F9D #9D2F3A #719D2F #2F9D92
split-complementary
#5B2F9D #9D922F #3A9D2F
monochromatic
#24133F #40216E #5B2F9D #7743C7 #9972D5

Accessibility & contrast

On white

8.98
#5B2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F9D
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F9D#FFFFFF#000000##FFFFFF
##5B2F9D1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#4A4A62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2f9d;
/* rgb */ color: rgb(91, 47, 157);
/* oklch */ color: oklch(42.5% 0.168 296.9);
Tailwind
colors: {
  custom: {
    50: '#8f6bbb',
    500: '#5b2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f9d;
$custom-light: #8f6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f9d",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 264,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.42523,
    "c": 0.16846,
    "h": 296.9
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#5B2F9D
secondary
#9CBC6B
accent
#DD4BA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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