#5B2FA5#5B2FA5

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

Color values

HEX#5B2FA5
RGBrgb(91, 47, 165)
HSLhsl(262, 56%, 42%)
HSVhsv(262, 72%, 65%)
CMYKcmyk(44.8%, 71.5%, 0%, 35.3%)
CIE-LABlab(31.75, 45.87, -56.35)
CIE-LCHlch(31.75, 72.66, 309.14°)
OKLaboklab(43.19% 0.0748 -0.1613)
OKLCHoklch(43.19% 0.178 294.9)
XYZxyz(12.1206, 6.9735, 36.2974)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA5 #79A52F
analogous
#2F3EA5 #5B2FA5 #962FA5
triadic
#5B2FA5 #A55B2F #2FA55B
tetradic
#5B2FA5 #A52F3E #79A52F #2FA596
square
#5B2FA5 #A52F3E #79A52F #2FA596
split-complementary
#5B2FA5 #A5962F #3EA52F
monochromatic
#261446 #412175 #5B2FA5 #7847CB #9B76D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2FA5#FFFFFF#000000##FFFFFF
##5B2FA51.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)
#004CA8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#464D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2fa5;
/* rgb */ color: rgb(91, 47, 165);
/* oklch */ color: oklch(43.2% 0.178 294.9);
Tailwind
colors: {
  custom: {
    50: '#906bc1',
    500: '#5b2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa5;
$custom-light: #906bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa5",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 262.373,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.17781,
    "h": 294.9
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#5B2FA5
secondary
#A2C070
accent
#DF49A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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