#5B2EA7#5B2EA7

#5B2EA7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.181 H 294.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5B2EA7
RGBrgb(91, 46, 167)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 72%, 65%)
CMYKcmyk(45.5%, 72.5%, 0%, 34.5%)
CIE-LABlab(31.73, 46.91, -57.58)
CIE-LCHlch(31.73, 74.27, 309.17°)
OKLaboklab(43.24% 0.0754 -0.1649)
OKLCHoklch(43.24% 0.181 294.6)
XYZxyz(12.2645, 6.9678, 37.2505)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EA7 #7AA72E
analogous
#2E3EA7 #5B2EA7 #982EA7
triadic
#5B2EA7 #A75B2E #2EA75B
tetradic
#5B2EA7 #A72E3E #7AA72E #2EA798
square
#5B2EA7 #A72E3E #7AA72E #2EA798
split-complementary
#5B2EA7 #A7982E #3EA72E
monochromatic
#271447 #412177 #5B2EA7 #7846CC #9B76D9

Accessibility & contrast

On white

8.77
#5B2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EA7
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EA7#FFFFFF#000000##FFFFFF
##5B2EA71.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#454D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2ea7;
/* rgb */ color: rgb(91, 46, 167);
/* oklch */ color: oklch(43.2% 0.181 294.6);
Tailwind
colors: {
  custom: {
    50: '#906bc2',
    500: '#5b2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ea7;
$custom-light: #906bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ea7",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 262.314,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43235,
    "c": 0.1813,
    "h": 294.6
  },
  "luminance": 0.06968
}

Semantic roles & 50–950 ramp

primary
#5B2EA7
secondary
#A3C170
accent
#E048A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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