#5B2E8D#5B2E8D

#5B2E8D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.151 H 301.9°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5B2E8D
RGBrgb(91, 46, 141)
HSLhsl(268, 51%, 37%)
HSVhsv(268, 67%, 55%)
CMYKcmyk(35.5%, 67.4%, 0%, 44.7%)
CIE-LABlab(29.67, 39.97, -45.09)
CIE-LCHlch(29.67, 60.26, 311.56°)
OKLaboklab(41.11% 0.0796 -0.1282)
OKLCHoklch(41.11% 0.151 301.9)
XYZxyz(10.0980, 6.1012, 25.8398)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E8D #608D2E
analogous
#2E318D #5B2E8D #8B2E8D
triadic
#5B2E8D #8D5B2E #2E8D5B
tetradic
#5B2E8D #8D2E31 #608D2E #2E8D8B
square
#5B2E8D #8D2E31 #608D2E #2E8D8B
split-complementary
#5B2E8D #8D8B2E #318D2E
monochromatic
#1F1031 #3D1F5F #5B2E8D #793DBB #9868CE

Accessibility & contrast

On white

9.46
#5B2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E8D
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E8D#FFFFFF#000000##FFFFFF
##5B2E8D1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#04458B
Tritanopia (blue-blind)
#514359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2e8d;
/* rgb */ color: rgb(91, 46, 141);
/* oklch */ color: oklch(41.1% 0.151 301.9);
Tailwind
colors: {
  custom: {
    50: '#8e6aaf',
    500: '#5b2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e8d;
$custom-light: #8e6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e8d",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 268.421,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41111,
    "c": 0.15091,
    "h": 301.9
  },
  "luminance": 0.06101
}

Semantic roles & 50–950 ramp

primary
#5B2E8D
secondary
#8EB562
accent
#DA4E98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5B2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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