#5B2E89#5B2E89

#5B2E89 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.146 H 303.2°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5B2E89
RGBrgb(91, 46, 137)
HSLhsl(270, 50%, 36%)
HSVhsv(270, 66%, 54%)
CMYKcmyk(33.6%, 66.4%, 0%, 46.3%)
CIE-LABlab(29.37, 38.93, -43.09)
CIE-LCHlch(29.37, 58.07, 312.10°)
OKLaboklab(40.81% 0.08 -0.1223)
OKLCHoklch(40.81% 0.146 303.2)
XYZxyz(9.8057, 5.9843, 24.3006)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E89 #5C892E
analogous
#2E2E89 #5B2E89 #882E89
triadic
#5B2E89 #895B2E #2E895B
tetradic
#5B2E89 #892E2E #5C892E #2E8988
square
#5B2E89 #892E2E #5C892E #2E8988
split-complementary
#5B2E89 #89882E #2E892E
monochromatic
#1E0F2D #3D1F5B #5B2E89 #793DB7 #9866CC

Accessibility & contrast

On white

9.56
#5B2E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B2E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E89
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E89#FFFFFF#000000##FFFFFF
##5B2E891.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#0F4587
Tritanopia (blue-blind)
#524257
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2e89;
/* rgb */ color: rgb(91, 46, 137);
/* oklch */ color: oklch(40.8% 0.146 303.2);
Tailwind
colors: {
  custom: {
    50: '#8d6aac',
    500: '#5b2e89',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e89;
$custom-light: #8d6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e89",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 269.67,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40807,
    "c": 0.14615,
    "h": 303.2
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

primary
#5B2E89
secondary
#8AB260
accent
#D94F95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5B2E89

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

Preview Lab → · Contrast checker → · Palette generator →

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