#5B2FB1#5B2FB1

#5B2FB1 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.192 H 292.1°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5B2FB1
RGBrgb(91, 47, 177)
HSLhsl(260, 58%, 44%)
HSVhsv(260, 73%, 69%)
CMYKcmyk(48.6%, 73.4%, 0%, 30.6%)
CIE-LABlab(32.77, 49.14, -61.88)
CIE-LCHlch(32.77, 79.02, 308.46°)
OKLaboklab(44.23% 0.0723 -0.1775)
OKLCHoklch(44.23% 0.192 292.1)
XYZxyz(13.2645, 7.4310, 42.3219)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FB1 #85B12F
analogous
#2F44B1 #5B2FB1 #9C2FB1
triadic
#5B2FB1 #B15B2F #2FB15B
tetradic
#5B2FB1 #B12F44 #85B12F #2FB19C
square
#5B2FB1 #B12F44 #85B12F #2FB19C
split-complementary
#5B2FB1 #B19C2F #44B12F
monochromatic
#291550 #422281 #5B2FB1 #7A4DD0 #9E7EDD

Accessibility & contrast

On white

8.45
#5B2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5B2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FB1
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FB1#FFFFFF#000000##FFFFFF
##5B2FB11.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#40516D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2fb1;
/* rgb */ color: rgb(91, 47, 177);
/* oklch */ color: oklch(44.2% 0.192 292.1);
Tailwind
colors: {
  custom: {
    50: '#926cc9',
    500: '#5b2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fb1;
$custom-light: #926cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fb1",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 260.308,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44233,
    "c": 0.19165,
    "h": 292.1
  },
  "luminance": 0.07432
}

Semantic roles & 50–950 ramp

primary
#5B2FB1
secondary
#ABC576
accent
#E147AD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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