#5B2E92#5B2E92

#5B2E92 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.157 H 300.3°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5B2E92
RGBrgb(91, 46, 146)
HSLhsl(267, 52%, 38%)
HSVhsv(267, 68%, 57%)
CMYKcmyk(37.7%, 68.5%, 0%, 42.7%)
CIE-LABlab(30.04, 41.29, -47.56)
CIE-LCHlch(30.04, 62.98, 310.96°)
OKLaboklab(41.5% 0.079 -0.1354)
OKLCHoklch(41.5% 0.157 300.3)
XYZxyz(10.4784, 6.2534, 27.8435)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E92 #65922E
analogous
#2E3392 #5B2E92 #8D2E92
triadic
#5B2E92 #925B2E #2E925B
tetradic
#5B2E92 #922E33 #65922E #2E928D
square
#5B2E92 #922E33 #65922E #2E928D
split-complementary
#5B2E92 #928D2E #33922E
monochromatic
#211135 #3E1F63 #5B2E92 #783DC1 #986AD0

Accessibility & contrast

On white

9.33
#5B2E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5B2E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E92
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E92#FFFFFF#000000##FFFFFF
##5B2E921.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#4F455C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2e92;
/* rgb */ color: rgb(91, 46, 146);
/* oklch */ color: oklch(41.5% 0.157 300.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ab3',
    500: '#5b2e92',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e92;
$custom-light: #8e6ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e92",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 267,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41501,
    "c": 0.15682,
    "h": 300.3
  },
  "luminance": 0.06253
}

Semantic roles & 50–950 ramp

primary
#5B2E92
secondary
#92B765
accent
#DC4C9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2E92

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

Preview Lab → · Contrast checker → · Palette generator →

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