#5B258D#5B258D

#5B258D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.163 H 303.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5B258D
RGBrgb(91, 37, 141)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(35.5%, 73.8%, 0%, 44.7%)
CIE-LABlab(28.04, 44.51, -47.73)
CIE-LCHlch(28.04, 65.27, 313.00°)
OKLaboklab(39.95% 0.0896 -0.1359)
OKLCHoklch(39.95% 0.163 303.4)
XYZxyz(9.7826, 5.4704, 25.7347)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B258D #578D25
analogous
#27258D #5B258D #8D258B
triadic
#5B258D #8D5B25 #258D5B
tetradic
#5B258D #8D2725 #578D25 #258B8D
square
#5B258D #8D2725 #578D25 #258B8D
split-complementary
#5B258D #8B8D25 #258D27
monochromatic
#1C0C2C #3C185D #5B258D #7A32BD #9959D3

Accessibility & contrast

On white

10.03
#5B258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B258D
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B258D#FFFFFF#000000##FFFFFF
##5B258D1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#513E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b258d;
/* rgb */ color: rgb(91, 37, 141);
/* oklch */ color: oklch(39.9% 0.163 303.4);
Tailwind
colors: {
  custom: {
    50: '#8e65af',
    500: '#5b258d',
    950: '#000000',
  },
}
SCSS
$custom: #5b258d;
$custom-light: #8e65af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b258d",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 271.154,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39946,
    "c": 0.1628,
    "h": 303.4
  },
  "luminance": 0.0547
}

Semantic roles & 50–950 ramp

primary
#5B258D
secondary
#85B856
accent
#E24691
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B258D

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

Preview Lab → · Contrast checker → · Palette generator →

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