#5B2697#5B2697

#5B2697 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.173 H 300.1°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5B2697
RGBrgb(91, 38, 151)
HSLhsl(268, 60%, 37%)
HSVhsv(268, 75%, 59%)
CMYKcmyk(39.7%, 74.8%, 0%, 40.8%)
CIE-LABlab(29.02, 46.57, -52.30)
CIE-LCHlch(29.02, 70.03, 311.69°)
OKLaboklab(40.9% 0.0865 -0.1493)
OKLCHoklch(40.9% 0.173 300.1)
XYZxyz(10.5920, 5.8446, 29.8422)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2697 #629726
analogous
#262997 #5B2697 #942697
triadic
#5B2697 #975B26 #26975B
tetradic
#5B2697 #972629 #629726 #269794
square
#5B2697 #972629 #629726 #269794
split-complementary
#5B2697 #979426 #299726
monochromatic
#200D35 #3E1A66 #5B2697 #7832C8 #9860D7

Accessibility & contrast

On white

9.68
#5B2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5B2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2697
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2697#FFFFFF#000000##FFFFFF
##5B26971.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#4D435C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2697;
/* rgb */ color: rgb(91, 38, 151);
/* oklch */ color: oklch(40.9% 0.173 300.1);
Tailwind
colors: {
  custom: {
    50: '#8f66b6',
    500: '#5b2697',
    950: '#000000',
  },
}
SCSS
$custom: #5b2697;
$custom-light: #8f66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2697",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 268.142,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40896,
    "c": 0.17259,
    "h": 300.1
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#5B2697
secondary
#8FBC5C
accent
#E34599
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2697

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

Preview Lab → · Contrast checker → · Palette generator →

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