#5B2FBC#5B2FBC

#5B2FBC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.204 H 289.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5B2FBC
RGBrgb(91, 47, 188)
HSLhsl(259, 60%, 46%)
HSVhsv(259, 75%, 74%)
CMYKcmyk(51.6%, 75%, 0%, 26.3%)
CIE-LABlab(33.75, 52.16, -66.79)
CIE-LCHlch(33.75, 84.74, 307.98°)
OKLaboklab(45.22% 0.0696 -0.1919)
OKLCHoklch(45.22% 0.204 289.9)
XYZxyz(14.4054, 7.8874, 48.3306)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FBC #90BC2F
analogous
#2F4ABC #5B2FBC #A12FBC
triadic
#5B2FBC #BC5B2F #2FBC5B
tetradic
#5B2FBC #BC2F4A #90BC2F #2FBCA1
square
#5B2FBC #BC2F4A #90BC2F #2FBCA1
split-complementary
#5B2FBC #BCA12F #4ABC2F
monochromatic
#2C175A #43238B #5B2FBC #7C54D4 #A185E0

Accessibility & contrast

On white

8.15
#5B2FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5B2FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FBC
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FBC#FFFFFF#000000##FFFFFF
##5B2FBC1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#385673
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2fbc;
/* rgb */ color: rgb(91, 47, 188);
/* oklch */ color: oklch(45.2% 0.204 289.9);
Tailwind
colors: {
  custom: {
    50: '#936cd1',
    500: '#5b2fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fbc;
$custom-light: #936cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fbc",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 258.723,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45222,
    "c": 0.20414,
    "h": 289.9
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#5B2FBC
secondary
#B2CA7D
accent
#E345B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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