#5B2FBF#5B2FBF

#5B2FBF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.208 H 289.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5B2FBF
RGBrgb(91, 47, 191)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 75%, 75%)
CMYKcmyk(52.4%, 75.4%, 0%, 25.1%)
CIE-LABlab(34.02, 52.98, -68.11)
CIE-LCHlch(34.02, 86.29, 307.88°)
OKLaboklab(45.5% 0.0688 -0.1958)
OKLCHoklch(45.5% 0.208 289.4)
XYZxyz(14.7321, 8.0181, 50.0515)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FBF #93BF2F
analogous
#2F4BBF #5B2FBF #A32FBF
triadic
#5B2FBF #BF5B2F #2FBF5B
tetradic
#5B2FBF #BF2F4B #93BF2F #2FBFA3
square
#5B2FBF #BF2F4B #93BF2F #2FBFA3
split-complementary
#5B2FBF #BFA32F #4BBF2F
monochromatic
#2C175D #44238E #5B2FBF #7D56D5 #A387E1

Accessibility & contrast

On white

8.07
#5B2FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B2FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FBF
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FBF#FFFFFF#000000##FFFFFF
##5B2FBF1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#355775
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b2fbf;
/* rgb */ color: rgb(91, 47, 191);
/* oklch */ color: oklch(45.5% 0.208 289.4);
Tailwind
colors: {
  custom: {
    50: '#946cd3',
    500: '#5b2fbf',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fbf;
$custom-light: #946cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fbf",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 258.333,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45497,
    "c": 0.20751,
    "h": 289.4
  },
  "luminance": 0.08019
}

Semantic roles & 50–950 ramp

primary
#5B2FBF
secondary
#B4CB7F
accent
#E444B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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