#5B259A#5B259A

#5B259A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.177 H 299.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5B259A
RGBrgb(91, 37, 154)
HSLhsl(268, 61%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(40.9%, 76%, 0%, 39.6%)
CIE-LABlab(29.11, 47.80, -53.98)
CIE-LCHlch(29.11, 72.10, 311.52°)
OKLaboklab(41.04% 0.0868 -0.1543)
OKLCHoklch(41.04% 0.177 299.4)
XYZxyz(10.8072, 5.8802, 31.1312)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B259A #649A25
analogous
#252A9A #5B259A #95259A
triadic
#5B259A #9A5B25 #259A5B
tetradic
#5B259A #9A252A #649A25 #259A95
square
#5B259A #9A252A #649A25 #259A95
split-complementary
#5B259A #9A9525 #2A9A25
monochromatic
#210D37 #3E1969 #5B259A #7831CB #9860D9

Accessibility & contrast

On white

9.65
#5B259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B259A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B259A#FFFFFF#000000##FFFFFF
##5B259A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4C435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b259a;
/* rgb */ color: rgb(91, 37, 154);
/* oklch */ color: oklch(41.0% 0.177 299.4);
Tailwind
colors: {
  custom: {
    50: '#8f65b9',
    500: '#5b259a',
    950: '#000000',
  },
}
SCSS
$custom: #5b259a;
$custom-light: #8f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b259a",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 267.692,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41039,
    "c": 0.17701,
    "h": 299.4
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#5B259A
secondary
#91BE5D
accent
#E4439A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B259A

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

Preview Lab → · Contrast checker → · Palette generator →

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