#5B2799#5B2799

#5B2799 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.174 H 299.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5B2799
RGBrgb(91, 39, 153)
HSLhsl(267, 59%, 38%)
HSVhsv(267, 75%, 60%)
CMYKcmyk(40.5%, 74.5%, 0%, 40%)
CIE-LABlab(29.35, 46.62, -52.98)
CIE-LCHlch(29.35, 70.57, 311.34°)
OKLaboklab(41.18% 0.0851 -0.1513)
OKLCHoklch(41.18% 0.174 299.4)
XYZxyz(10.7882, 5.9750, 30.7157)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2799 #659927
analogous
#272C99 #5B2799 #942799
triadic
#5B2799 #995B27 #27995B
tetradic
#5B2799 #99272C #659927 #279994
square
#5B2799 #99272C #659927 #279994
split-complementary
#5B2799 #999427 #2C9927
monochromatic
#210E37 #3E1B68 #5B2799 #7833CA #9863D7

Accessibility & contrast

On white

9.57
#5B2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2799
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2799#FFFFFF#000000##FFFFFF
##5B27991.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2799;
/* rgb */ color: rgb(91, 39, 153);
/* oklch */ color: oklch(41.2% 0.174 299.4);
Tailwind
colors: {
  custom: {
    50: '#8f66b8',
    500: '#5b2799',
    950: '#000000',
  },
}
SCSS
$custom: #5b2799;
$custom-light: #8f66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2799",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 267.368,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41182,
    "c": 0.17364,
    "h": 299.4
  },
  "luminance": 0.05975
}

Semantic roles & 50–950 ramp

primary
#5B2799
secondary
#92BD5F
accent
#E3459B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2799

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

Preview Lab → · Contrast checker → · Palette generator →

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