#5B259E#5B259E

#5B259E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.181 H 298.2°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5B259E
RGBrgb(91, 37, 158)
HSLhsl(267, 62%, 38%)
HSVhsv(267, 77%, 62%)
CMYKcmyk(42.4%, 76.6%, 0%, 38%)
CIE-LABlab(29.45, 48.82, -55.86)
CIE-LCHlch(29.45, 74.19, 311.15°)
OKLaboklab(41.39% 0.0858 -0.1598)
OKLCHoklch(41.39% 0.181 298.2)
XYZxyz(11.1459, 6.0157, 32.9150)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B259E #689E25
analogous
#252B9E #5B259E #97259E
triadic
#5B259E #9E5B25 #259E5B
tetradic
#5B259E #9E252B #689E25 #259E97
square
#5B259E #9E252B #689E25 #259E97
split-complementary
#5B259E #9E9725 #2B9E25
monochromatic
#220E3B #3E196C #5B259E #7831CF #9863DA

Accessibility & contrast

On white

9.53
#5B259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B259E
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B259E#FFFFFF#000000##FFFFFF
##5B259E1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4A4560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b259e;
/* rgb */ color: rgb(91, 37, 158);
/* oklch */ color: oklch(41.4% 0.181 298.2);
Tailwind
colors: {
  custom: {
    50: '#9065bc',
    500: '#5b259e',
    950: '#000000',
  },
}
SCSS
$custom: #5b259e;
$custom-light: #9065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b259e",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 266.777,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41387,
    "c": 0.18135,
    "h": 298.2
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#5B259E
secondary
#95C05F
accent
#E5439D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B259E

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

Preview Lab → · Contrast checker → · Palette generator →

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