#5B2C90#5B2C90

#5B2C90 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.157 H 301.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5B2C90
RGBrgb(91, 44, 144)
HSLhsl(268, 53%, 37%)
HSVhsv(268, 69%, 56%)
CMYKcmyk(36.8%, 69.4%, 0%, 43.5%)
CIE-LABlab(29.51, 41.81, -47.19)
CIE-LCHlch(29.51, 63.05, 311.54°)
OKLaboklab(41.07% 0.0816 -0.1343)
OKLCHoklch(41.07% 0.157 301.3)
XYZxyz(10.2479, 6.0391, 27.0059)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C90 #61902C
analogous
#2C2F90 #5B2C90 #8D2C90
triadic
#5B2C90 #905B2C #2C905B
tetradic
#5B2C90 #902C2F #61902C #2C908D
square
#5B2C90 #902C2F #61902C #2C908D
split-complementary
#5B2C90 #908D2C #2F902C
monochromatic
#200F32 #3D1E61 #5B2C90 #793ABF #9866D0

Accessibility & contrast

On white

9.51
#5B2C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B2C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C90
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C90#FFFFFF#000000##FFFFFF
##5B2C901.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#50435A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2c90;
/* rgb */ color: rgb(91, 44, 144);
/* oklch */ color: oklch(41.1% 0.157 301.3);
Tailwind
colors: {
  custom: {
    50: '#8e69b1',
    500: '#5b2c90',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c90;
$custom-light: #8e69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c90",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 268.2,
    "s": 53.191,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41071,
    "c": 0.15717,
    "h": 301.3
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#5B2C90
secondary
#8EB761
accent
#DD4B98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2C90

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

Preview Lab → · Contrast checker → · Palette generator →

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