#5B2FBD#5B2FBD

#5B2FBD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.205 H 289.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5B2FBD
RGBrgb(91, 47, 189)
HSLhsl(259, 60%, 46%)
HSVhsv(259, 75%, 74%)
CMYKcmyk(51.9%, 75.1%, 0%, 25.9%)
CIE-LABlab(33.84, 52.43, -67.23)
CIE-LCHlch(33.84, 85.26, 307.95°)
OKLaboklab(45.31% 0.0693 -0.1932)
OKLCHoklch(45.31% 0.205 289.7)
XYZxyz(14.5135, 7.9307, 48.9003)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FBD #91BD2F
analogous
#2F4ABD #5B2FBD #A22FBD
triadic
#5B2FBD #BD5B2F #2FBD5B
tetradic
#5B2FBD #BD2F4A #91BD2F #2FBDA2
square
#5B2FBD #BD2F4A #91BD2F #2FBDA2
split-complementary
#5B2FBD #BDA22F #4ABD2F
monochromatic
#2C175B #43238C #5B2FBD #7C55D5 #A286E1

Accessibility & contrast

On white

8.12
#5B2FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5B2FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FBD
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FBD#FFFFFF#000000##FFFFFF
##5B2FBD1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#375674
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b2fbd;
/* rgb */ color: rgb(91, 47, 189);
/* oklch */ color: oklch(45.3% 0.205 289.7);
Tailwind
colors: {
  custom: {
    50: '#936cd2',
    500: '#5b2fbd',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fbd;
$custom-light: #936cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fbd",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 258.592,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45314,
    "c": 0.20527,
    "h": 289.7
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#5B2FBD
secondary
#B2CA7E
accent
#E344B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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