#5B2FD3#5B2FD3

#5B2FD3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.230 H 286.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5B2FD3
RGBrgb(91, 47, 211)
HSLhsl(256, 65%, 51%)
HSVhsv(256, 78%, 83%)
CMYKcmyk(56.9%, 77.7%, 0%, 17.3%)
CIE-LABlab(35.91, 58.45, -76.67)
CIE-LCHlch(35.91, 96.41, 307.32°)
OKLaboklab(47.39% 0.0632 -0.2208)
OKLCHoklch(47.39% 0.23 286)
XYZxyz(17.0852, 8.9593, 62.4444)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FD3 #A7D32F
analogous
#2F55D3 #5B2FD3 #AD2FD3
triadic
#5B2FD3 #D35B2F #2FD35B
tetradic
#5B2FD3 #D32F55 #A7D32F #2FD3AD
square
#5B2FD3 #D32F55 #A7D32F #2FD3AD
split-complementary
#5B2FD3 #D3AD2F #55D32F
monochromatic
#2F1870 #4522A2 #5B2FD3 #8362DE #AB94E8

Accessibility & contrast

On white

7.52
#5B2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5B2FD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FD3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FD3#FFFFFF#000000##FFFFFF
##5B2FD31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D8
Deuteranopia (green-blind)
#0050D0
Tritanopia (blue-blind)
#1E5F81
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b2fd3;
/* rgb */ color: rgb(91, 47, 211);
/* oklch */ color: oklch(47.4% 0.230 286.0);
Tailwind
colors: {
  custom: {
    50: '#976de2',
    500: '#5b2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fd3;
$custom-light: #976de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fd3",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 256.098,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.2297,
    "h": 286
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#5B2FD3
secondary
#C0D38A
accent
#E840BB
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5B2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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