#5B2FA8#5B2FA8

#5B2FA8 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.181 H 294.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5B2FA8
RGBrgb(91, 47, 168)
HSLhsl(262, 56%, 42%)
HSVhsv(262, 72%, 66%)
CMYKcmyk(45.8%, 72%, 0%, 34.1%)
CIE-LABlab(32.00, 46.68, -57.75)
CIE-LCHlch(32.00, 74.26, 308.95°)
OKLaboklab(43.45% 0.0742 -0.1654)
OKLCHoklch(43.45% 0.181 294.2)
XYZxyz(12.3969, 7.0840, 37.7524)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FA8 #7CA82F
analogous
#2F40A8 #5B2FA8 #982FA8
triadic
#5B2FA8 #A85B2F #2FA85B
tetradic
#5B2FA8 #A82F40 #7CA82F #2FA898
square
#5B2FA8 #A82F40 #7CA82F #2FA898
split-complementary
#5B2FA8 #A8982F #40A82F
monochromatic
#271448 #412278 #5B2FA8 #7848CC #9B78D9

Accessibility & contrast

On white

8.69
#5B2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FA8
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FA8#FFFFFF#000000##FFFFFF
##5B2FA81.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2fa8;
/* rgb */ color: rgb(91, 47, 168);
/* oklch */ color: oklch(43.4% 0.181 294.2);
Tailwind
colors: {
  custom: {
    50: '#906bc3',
    500: '#5b2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fa8;
$custom-light: #906bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fa8",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 261.818,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43448,
    "c": 0.18129,
    "h": 294.2
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#5B2FA8
secondary
#A4C171
accent
#E048A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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