#5B259D#5B259D

#5B259D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.180 H 298.5°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5B259D
RGBrgb(91, 37, 157)
HSLhsl(267, 62%, 38%)
HSVhsv(267, 76%, 62%)
CMYKcmyk(42%, 76.4%, 0%, 38.4%)
CIE-LABlab(29.37, 48.56, -55.39)
CIE-LCHlch(29.37, 73.67, 311.24°)
OKLaboklab(41.3% 0.086 -0.1584)
OKLCHoklch(41.3% 0.18 298.5)
XYZxyz(11.0602, 5.9814, 32.4636)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B259D #679D25
analogous
#252B9D #5B259D #97259D
triadic
#5B259D #9D5B25 #259D5B
tetradic
#5B259D #9D252B #679D25 #259D97
square
#5B259D #9D252B #679D25 #259D97
split-complementary
#5B259D #9D9725 #2B9D25
monochromatic
#220E3A #3E196B #5B259D #7831CE #9862DA

Accessibility & contrast

On white

9.56
#5B259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B259D
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B259D#FFFFFF#000000##FFFFFF
##5B259D1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#4B4560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b259d;
/* rgb */ color: rgb(91, 37, 157);
/* oklch */ color: oklch(41.3% 0.180 298.5);
Tailwind
colors: {
  custom: {
    50: '#9065bb',
    500: '#5b259d',
    950: '#000000',
  },
}
SCSS
$custom: #5b259d;
$custom-light: #9065bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b259d",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 267,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41299,
    "c": 0.18027,
    "h": 298.5
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#5B259D
secondary
#94BF5E
accent
#E5439C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B259D

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

Preview Lab → · Contrast checker → · Palette generator →

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