#5B2E8E#5B2E8E

#5B2E8E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.152 H 301.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5B2E8E
RGBrgb(91, 46, 142)
HSLhsl(268, 51%, 37%)
HSVhsv(268, 68%, 56%)
CMYKcmyk(35.9%, 67.6%, 0%, 44.3%)
CIE-LABlab(29.74, 40.23, -45.59)
CIE-LCHlch(29.74, 60.80, 311.43°)
OKLaboklab(41.19% 0.0795 -0.1296)
OKLCHoklch(41.19% 0.152 301.5)
XYZxyz(10.1727, 6.1311, 26.2334)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E8E #618E2E
analogous
#2E318E #5B2E8E #8B2E8E
triadic
#5B2E8E #8E5B2E #2E8E5B
tetradic
#5B2E8E #8E2E31 #618E2E #2E8E8B
square
#5B2E8E #8E2E31 #618E2E #2E8E8B
split-complementary
#5B2E8E #8E8B2E #318E2E
monochromatic
#201032 #3D1F60 #5B2E8E #793DBC #9868CE

Accessibility & contrast

On white

9.43
#5B2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5B2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E8E
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E8E#FFFFFF#000000##FFFFFF
##5B2E8E1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#01468C
Tritanopia (blue-blind)
#50445A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2e8e;
/* rgb */ color: rgb(91, 46, 142);
/* oklch */ color: oklch(41.2% 0.152 301.5);
Tailwind
colors: {
  custom: {
    50: '#8e6ab0',
    500: '#5b2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e8e;
$custom-light: #8e6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e8e",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 268.125,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41188,
    "c": 0.15209,
    "h": 301.5
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#5B2E8E
secondary
#8EB563
accent
#DB4D98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5B2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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