#5B2FB3#5B2FB3

#5B2FB3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.194 H 291.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5B2FB3
RGBrgb(91, 47, 179)
HSLhsl(260, 58%, 44%)
HSVhsv(260, 74%, 70%)
CMYKcmyk(49.2%, 73.7%, 0%, 29.8%)
CIE-LABlab(32.94, 49.69, -62.78)
CIE-LCHlch(32.94, 80.06, 308.36°)
OKLaboklab(44.41% 0.0718 -0.1802)
OKLCHoklch(44.41% 0.194 291.7)
XYZxyz(13.4653, 7.5113, 43.3794)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FB3 #87B32F
analogous
#2F45B3 #5B2FB3 #9D2FB3
triadic
#5B2FB3 #B35B2F #2FB35B
tetradic
#5B2FB3 #B32F45 #87B32F #2FB39D
square
#5B2FB3 #B32F45 #87B32F #2FB39D
split-complementary
#5B2FB3 #B39D2F #45B32F
monochromatic
#2A1652 #422283 #5B2FB3 #7A4FD1 #9E7FDD

Accessibility & contrast

On white

8.39
#5B2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5B2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FB3
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FB3#FFFFFF#000000##FFFFFF
##5B2FB31.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#3E526E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2fb3;
/* rgb */ color: rgb(91, 47, 179);
/* oklch */ color: oklch(44.4% 0.194 291.7);
Tailwind
colors: {
  custom: {
    50: '#926ccb',
    500: '#5b2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fb3;
$custom-light: #926ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fb3",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 260,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4441,
    "c": 0.19394,
    "h": 291.7
  },
  "luminance": 0.07512
}

Semantic roles & 50–950 ramp

primary
#5B2FB3
secondary
#ACC678
accent
#E246AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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