#5B259B#5B259B

#5B259B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.178 H 299.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5B259B
RGBrgb(91, 37, 155)
HSLhsl(267, 61%, 38%)
HSVhsv(267, 76%, 61%)
CMYKcmyk(41.3%, 76.1%, 0%, 39.2%)
CIE-LABlab(29.19, 48.05, -54.46)
CIE-LCHlch(29.19, 72.63, 311.43°)
OKLaboklab(41.13% 0.0865 -0.1557)
OKLCHoklch(41.13% 0.178 299.1)
XYZxyz(10.8908, 5.9137, 31.5717)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B259B #659B25
analogous
#252A9B #5B259B #96259B
triadic
#5B259B #9B5B25 #259B5B
tetradic
#5B259B #9B252A #659B25 #259B96
square
#5B259B #9B252A #659B25 #259B96
split-complementary
#5B259B #9B9625 #2A9B25
monochromatic
#210D38 #3E196A #5B259B #7831CC #9861D9

Accessibility & contrast

On white

9.62
#5B259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B259B
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B259B#FFFFFF#000000##FFFFFF
##5B259B1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4C445E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b259b;
/* rgb */ color: rgb(91, 37, 155);
/* oklch */ color: oklch(41.1% 0.178 299.1);
Tailwind
colors: {
  custom: {
    50: '#9065b9',
    500: '#5b259b',
    950: '#000000',
  },
}
SCSS
$custom: #5b259b;
$custom-light: #9065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b259b",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 267.458,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41125,
    "c": 0.17809,
    "h": 299.1
  },
  "luminance": 0.05914
}

Semantic roles & 50–950 ramp

primary
#5B259B
secondary
#92BF5D
accent
#E5439B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B259B

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

Preview Lab → · Contrast checker → · Palette generator →

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