#5B2EA5#5B2EA5

#5B2EA5 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.179 H 295.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA5
RGBrgb(91, 46, 165)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.8%, 72.1%, 0%, 35.3%)
CIE-LABlab(31.57, 46.37, -56.65)
CIE-LCHlch(31.57, 73.21, 309.30°)
OKLaboklab(43.06% 0.0758 -0.1622)
OKLCHoklch(43.06% 0.179 295.1)
XYZxyz(12.0811, 6.8944, 36.2843)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA5 #78A52E
analogous
#2E3DA5 #5B2EA5 #972EA5
triadic
#5B2EA5 #A55B2E #2EA55B
tetradic
#5B2EA5 #A52E3D #78A52E #2EA597
square
#5B2EA5 #A52E3D #78A52E #2EA597
split-complementary
#5B2EA5 #A5972E #3DA52E
monochromatic
#261345 #412175 #5B2EA5 #7845CB #9B75D8

Accessibility & contrast

On white

8.83
#5B2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA5
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA5#FFFFFF#000000##FFFFFF
##5B2EA51.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#464C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2ea5;
/* rgb */ color: rgb(91, 46, 165);
/* oklch */ color: oklch(43.1% 0.179 295.1);
Tailwind
colors: {
  custom: {
    50: '#906bc1',
    500: '#5b2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea5;
$custom-light: #906bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea5",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 262.689,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43063,
    "c": 0.179,
    "h": 295.1
  },
  "luminance": 0.06895
}

Semantic roles & 50–950 ramp

primary
#5B2EA5
secondary
#A1C06F
accent
#E048A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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