#5B2E8F#5B2E8F

#5B2E8F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.153 H 301.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5B2E8F
RGBrgb(91, 46, 143)
HSLhsl(268, 51%, 37%)
HSVhsv(268, 68%, 56%)
CMYKcmyk(36.4%, 67.8%, 0%, 43.9%)
CIE-LABlab(29.82, 40.50, -46.08)
CIE-LCHlch(29.82, 61.35, 311.31°)
OKLaboklab(41.27% 0.0794 -0.1311)
OKLCHoklch(41.27% 0.153 301.2)
XYZxyz(10.2481, 6.1613, 26.6306)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E8F #628F2E
analogous
#2E328F #5B2E8F #8C2E8F
triadic
#5B2E8F #8F5B2E #2E8F5B
tetradic
#5B2E8F #8F2E32 #628F2E #2E8F8C
square
#5B2E8F #8F2E32 #628F2E #2E8F8C
split-complementary
#5B2E8F #8F8C2E #328F2E
monochromatic
#201032 #3E1F61 #5B2E8F #783DBD #9869CF

Accessibility & contrast

On white

9.41
#5B2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2E8F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E8F#FFFFFF#000000##FFFFFF
##5B2E8F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#50445A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2e8f;
/* rgb */ color: rgb(91, 46, 143);
/* oklch */ color: oklch(41.3% 0.153 301.2);
Tailwind
colors: {
  custom: {
    50: '#8e6ab0',
    500: '#5b2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e8f;
$custom-light: #8e6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e8f",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 267.835,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41266,
    "c": 0.15327,
    "h": 301.2
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#5B2E8F
secondary
#8FB663
accent
#DB4D99
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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