#5B258F#5B258F

#5B258F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.165 H 302.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5B258F
RGBrgb(91, 37, 143)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 56%)
CMYKcmyk(36.4%, 74.1%, 0%, 43.9%)
CIE-LABlab(28.20, 45.01, -48.71)
CIE-LCHlch(28.20, 66.33, 312.74°)
OKLaboklab(40.11% 0.0892 -0.1388)
OKLCHoklch(40.11% 0.165 302.7)
XYZxyz(9.9327, 5.5304, 26.5255)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B258F #598F25
analogous
#26258F #5B258F #8F258E
triadic
#5B258F #8F5B25 #258F5B
tetradic
#5B258F #8F2625 #598F25 #258E8F
square
#5B258F #8F2625 #598F25 #258E8F
split-complementary
#5B258F #8E8F25 #258F26
monochromatic
#1D0C2E #3C185E #5B258F #7A32C0 #985AD4

Accessibility & contrast

On white

9.97
#5B258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B258F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B258F#FFFFFF#000000##FFFFFF
##5B258F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#503F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b258f;
/* rgb */ color: rgb(91, 37, 143);
/* oklch */ color: oklch(40.1% 0.165 302.7);
Tailwind
colors: {
  custom: {
    50: '#8e65b1',
    500: '#5b258f',
    950: '#000000',
  },
}
SCSS
$custom: #5b258f;
$custom-light: #8e65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b258f",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 270.566,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4011,
    "c": 0.16499,
    "h": 302.7
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#5B258F
secondary
#87B957
accent
#E24692
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B258F

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

Preview Lab → · Contrast checker → · Palette generator →

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