#5B258A#5B258A

#5B258A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.160 H 304.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5B258A
RGBrgb(91, 37, 138)
HSLhsl(272, 58%, 34%)
HSVhsv(272, 73%, 54%)
CMYKcmyk(34.1%, 73.2%, 0%, 45.9%)
CIE-LABlab(27.80, 43.77, -46.26)
CIE-LCHlch(27.80, 63.68, 313.42°)
OKLaboklab(39.7% 0.0902 -0.1316)
OKLCHoklch(39.7% 0.16 304.4)
XYZxyz(9.5624, 5.3823, 24.5750)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B258A #548A25
analogous
#29258A #5B258A #8A2587
triadic
#5B258A #8A5B25 #258A5B
tetradic
#5B258A #8A2925 #548A25 #25878A
square
#5B258A #8A2925 #548A25 #25878A
split-complementary
#5B258A #878A25 #258A29
monochromatic
#1B0B29 #3B185A #5B258A #7B32BA #9957D2

Accessibility & contrast

On white

10.11
#5B258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B258A
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B258A#FFFFFF#000000##FFFFFF
##5B258A1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#523D55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b258a;
/* rgb */ color: rgb(91, 37, 138);
/* oklch */ color: oklch(39.7% 0.160 304.4);
Tailwind
colors: {
  custom: {
    50: '#8e65ad',
    500: '#5b258a',
    950: '#000000',
  },
}
SCSS
$custom: #5b258a;
$custom-light: #8e65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b258a",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 272.079,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39703,
    "c": 0.1595,
    "h": 304.4
  },
  "luminance": 0.05382
}

Semantic roles & 50–950 ramp

primary
#5B258A
secondary
#82B754
accent
#E1478F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B258A

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

Preview Lab → · Contrast checker → · Palette generator →

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