#5B259F#5B259F

#5B259F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.182 H 297.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5B259F
RGBrgb(91, 37, 159)
HSLhsl(267, 62%, 38%)
HSVhsv(267, 77%, 62%)
CMYKcmyk(42.8%, 76.7%, 0%, 37.6%)
CIE-LABlab(29.54, 49.08, -56.33)
CIE-LCHlch(29.54, 74.71, 311.06°)
OKLaboklab(41.48% 0.0855 -0.1612)
OKLCHoklch(41.48% 0.182 297.9)
XYZxyz(11.2323, 6.0503, 33.3702)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B259F #699F25
analogous
#252C9F #5B259F #98259F
triadic
#5B259F #9F5B25 #259F5B
tetradic
#5B259F #9F252C #699F25 #259F98
square
#5B259F #9F252C #699F25 #259F98
split-complementary
#5B259F #9F9825 #2C9F25
monochromatic
#220E3C #3F196D #5B259F #7832CF #9864DB

Accessibility & contrast

On white

9.50
#5B259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B259F
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B259F#FFFFFF#000000##FFFFFF
##5B259F1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4A4561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b259f;
/* rgb */ color: rgb(91, 37, 159);
/* oklch */ color: oklch(41.5% 0.182 297.9);
Tailwind
colors: {
  custom: {
    50: '#9066bc',
    500: '#5b259f',
    950: '#000000',
  },
}
SCSS
$custom: #5b259f;
$custom-light: #9066bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b259f",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 266.557,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41475,
    "c": 0.18244,
    "h": 297.9
  },
  "luminance": 0.0605
}

Semantic roles & 50–950 ramp

primary
#5B259F
secondary
#95C05F
accent
#E5429D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B259F

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

Preview Lab → · Contrast checker → · Palette generator →

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