#5B258E#5B258E

#5B258E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.164 H 303.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5B258E
RGBrgb(91, 37, 142)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 56%)
CMYKcmyk(35.9%, 73.9%, 0%, 44.3%)
CIE-LABlab(28.12, 44.76, -48.22)
CIE-LCHlch(28.12, 65.80, 312.87°)
OKLaboklab(40.03% 0.0894 -0.1373)
OKLCHoklch(40.03% 0.164 303.1)
XYZxyz(9.8573, 5.5003, 26.1283)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B258E #588E25
analogous
#26258E #5B258E #8E258C
triadic
#5B258E #8E5B25 #258E5B
tetradic
#5B258E #8E2625 #588E25 #258C8E
square
#5B258E #8E2625 #588E25 #258C8E
split-complementary
#5B258E #8C8E25 #258E26
monochromatic
#1D0C2D #3C185D #5B258E #7A32BF #985AD4

Accessibility & contrast

On white

10.00
#5B258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5B258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B258E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B258E#FFFFFF#000000##FFFFFF
##5B258E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#513F57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b258e;
/* rgb */ color: rgb(91, 37, 142);
/* oklch */ color: oklch(40.0% 0.164 303.1);
Tailwind
colors: {
  custom: {
    50: '#8e65b0',
    500: '#5b258e',
    950: '#000000',
  },
}
SCSS
$custom: #5b258e;
$custom-light: #8e65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b258e",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 270.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40028,
    "c": 0.16389,
    "h": 303.1
  },
  "luminance": 0.055
}

Semantic roles & 50–950 ramp

primary
#5B258E
secondary
#86B956
accent
#E24692
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B258E

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

Preview Lab → · Contrast checker → · Palette generator →

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