#5B2B95#5B2B95

#5B2B95 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.164 H 299.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5B2B95
RGBrgb(91, 43, 149)
HSLhsl(267, 55%, 38%)
HSVhsv(267, 71%, 58%)
CMYKcmyk(38.9%, 71.1%, 0%, 41.6%)
CIE-LABlab(29.72, 43.63, -49.93)
CIE-LCHlch(29.72, 66.31, 311.14°)
OKLaboklab(41.34% 0.0819 -0.1424)
OKLCHoklch(41.34% 0.164 299.9)
XYZxyz(10.6017, 6.1217, 29.0510)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B95 #65952B
analogous
#2B3095 #5B2B95 #902B95
triadic
#5B2B95 #955B2B #2B955B
tetradic
#5B2B95 #952B30 #65952B #2B9590
square
#5B2B95 #952B30 #65952B #2B9590
split-complementary
#5B2B95 #95902B #30952B
monochromatic
#211036 #3E1D66 #5B2B95 #7839C4 #9867D3

Accessibility & contrast

On white

9.44
#5B2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2B95
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B95#FFFFFF#000000##FFFFFF
##5B2B951.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#4E445D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2b95;
/* rgb */ color: rgb(91, 43, 149);
/* oklch */ color: oklch(41.3% 0.164 299.9);
Tailwind
colors: {
  custom: {
    50: '#8f68b5',
    500: '#5b2b95',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b95;
$custom-light: #8f68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b95",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 267.17,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41342,
    "c": 0.16426,
    "h": 299.9
  },
  "luminance": 0.06122
}

Semantic roles & 50–950 ramp

primary
#5B2B95
secondary
#92BA62
accent
#DF499B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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