#5B2EA8#5B2EA8

#5B2EA8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.182 H 294.3°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA8
RGBrgb(91, 46, 168)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 73%, 66%)
CMYKcmyk(45.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(31.82, 47.19, -58.04)
CIE-LCHlch(31.82, 74.80, 309.11°)
OKLaboklab(43.32% 0.0752 -0.1662)
OKLCHoklch(43.32% 0.182 294.3)
XYZxyz(12.3573, 7.0049, 37.7392)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA8 #7BA82E
analogous
#2E3EA8 #5B2EA8 #982EA8
triadic
#5B2EA8 #A85B2E #2EA85B
tetradic
#5B2EA8 #A82E3E #7BA82E #2EA898
square
#5B2EA8 #A82E3E #7BA82E #2EA898
split-complementary
#5B2EA8 #A8982E #3EA82E
monochromatic
#271448 #412178 #5B2EA8 #7847CD #9B77DA

Accessibility & contrast

On white

8.75
#5B2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA8
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA8#FFFFFF#000000##FFFFFF
##5B2EA81.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#454D68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2ea8;
/* rgb */ color: rgb(91, 46, 168);
/* oklch */ color: oklch(43.3% 0.182 294.3);
Tailwind
colors: {
  custom: {
    50: '#916bc3',
    500: '#5b2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea8;
$custom-light: #916bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea8",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 262.131,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43321,
    "c": 0.18245,
    "h": 294.3
  },
  "luminance": 0.07005
}

Semantic roles & 50–950 ramp

primary
#5B2EA8
secondary
#A4C270
accent
#E048A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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