#5B259C#5B259C

#5B259C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.179 H 298.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5B259C
RGBrgb(91, 37, 156)
HSLhsl(267, 62%, 38%)
HSVhsv(267, 76%, 61%)
CMYKcmyk(41.7%, 76.3%, 0%, 38.8%)
CIE-LABlab(29.28, 48.31, -54.93)
CIE-LCHlch(29.28, 73.15, 311.33°)
OKLaboklab(41.21% 0.0863 -0.157)
OKLCHoklch(41.21% 0.179 298.8)
XYZxyz(10.9752, 5.9474, 32.0158)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B259C #669C25
analogous
#252A9C #5B259C #96259C
triadic
#5B259C #9C5B25 #259C5B
tetradic
#5B259C #9C252A #669C25 #259C96
square
#5B259C #9C252A #669C25 #259C96
split-complementary
#5B259C #9C9625 #2A9C25
monochromatic
#210E39 #3E196B #5B259C #7831CD #9862DA

Accessibility & contrast

On white

9.59
#5B259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B259C
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B259C#FFFFFF#000000##FFFFFF
##5B259C1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#4B445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b259c;
/* rgb */ color: rgb(91, 37, 156);
/* oklch */ color: oklch(41.2% 0.179 298.8);
Tailwind
colors: {
  custom: {
    50: '#9065ba',
    500: '#5b259c',
    950: '#000000',
  },
}
SCSS
$custom: #5b259c;
$custom-light: #9065ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b259c",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 267.227,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41212,
    "c": 0.17918,
    "h": 298.8
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#5B259C
secondary
#93BF5E
accent
#E5439B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B259C

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

Preview Lab → · Contrast checker → · Palette generator →

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