#5B2A90#5B2A90

#5B2A90 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.160 H 301.6°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5B2A90
RGBrgb(91, 42, 144)
HSLhsl(269, 55%, 36%)
HSVhsv(269, 71%, 56%)
CMYKcmyk(36.8%, 70.8%, 0%, 43.5%)
CIE-LABlab(29.14, 42.83, -47.79)
CIE-LCHlch(29.14, 64.18, 311.87°)
OKLaboklab(40.81% 0.0838 -0.1361)
OKLCHoklch(40.81% 0.16 301.6)
XYZxyz(10.1752, 5.8936, 26.9817)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A90 #5F902A
analogous
#2A2C90 #5B2A90 #8E2A90
triadic
#5B2A90 #905B2A #2A905B
tetradic
#5B2A90 #902A2C #5F902A #2A908E
square
#5B2A90 #902A2C #5F902A #2A908E
split-complementary
#5B2A90 #908E2A #2C902A
monochromatic
#1F0E31 #3D1C61 #5B2A90 #7938BF #9863D1

Accessibility & contrast

On white

9.64
#5B2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A90
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A90#FFFFFF#000000##FFFFFF
##5B2A901.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#50425A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2a90;
/* rgb */ color: rgb(91, 42, 144);
/* oklch */ color: oklch(40.8% 0.160 301.6);
Tailwind
colors: {
  custom: {
    50: '#8e68b1',
    500: '#5b2a90',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a90;
$custom-light: #8e68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a90",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 268.824,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40808,
    "c": 0.15982,
    "h": 301.6
  },
  "luminance": 0.05894
}

Semantic roles & 50–950 ramp

primary
#5B2A90
secondary
#8DB75E
accent
#DE4A97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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