#5B2F91#5B2F91

#5B2F91 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.154 H 300.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5B2F91
RGBrgb(91, 47, 145)
HSLhsl(267, 51%, 38%)
HSVhsv(267, 68%, 57%)
CMYKcmyk(37.2%, 67.6%, 0%, 43.1%)
CIE-LABlab(30.16, 40.49, -46.76)
CIE-LCHlch(30.16, 61.85, 310.89°)
OKLaboklab(41.56% 0.078 -0.1331)
OKLCHoklch(41.56% 0.154 300.4)
XYZxyz(10.4405, 6.3014, 27.4488)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F91 #65912F
analogous
#2F3491 #5B2F91 #8C2F91
triadic
#5B2F91 #915B2F #2F915B
tetradic
#5B2F91 #912F34 #65912F #2F918C
square
#5B2F91 #912F34 #65912F #2F918C
split-complementary
#5B2F91 #918C2F #34912F
monochromatic
#211135 #3E2063 #5B2F91 #783EBF #986BCF

Accessibility & contrast

On white

9.29
#5B2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F91
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F91#FFFFFF#000000##FFFFFF
##5B2F911.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#4F455C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2f91;
/* rgb */ color: rgb(91, 47, 145);
/* oklch */ color: oklch(41.6% 0.154 300.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bb2',
    500: '#5b2f91',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f91;
$custom-light: #8e6bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f91",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 266.939,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41561,
    "c": 0.15426,
    "h": 300.4
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#5B2F91
secondary
#92B665
accent
#DB4D9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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