#5B39C3#5B39C3

#5B39C3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.1% C 0.202 H 287.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5B39C3
RGBrgb(91, 57, 195)
HSLhsl(255, 55%, 49%)
HSVhsv(255, 71%, 76%)
CMYKcmyk(53.3%, 70.8%, 0%, 23.5%)
CIE-LABlab(36.16, 49.09, -66.96)
CIE-LCHlch(36.16, 83.02, 306.25°)
OKLaboklab(47.12% 0.0597 -0.1925)
OKLCHoklch(47.12% 0.202 287.2)
XYZxyz(15.6249, 9.0897, 52.5504)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39C3 #A1C339
analogous
#395CC3 #5B39C3 #A039C3
triadic
#5B39C3 #C35B39 #39C35B
tetradic
#5B39C3 #C3395C #A1C339 #39C3A0
square
#5B39C3 #C3395C #A1C339 #39C3A0
split-complementary
#5B39C3 #C3A039 #5CC339
monochromatic
#2F1D64 #452B94 #5B39C3 #8167D2 #A896E0

Accessibility & contrast

On white

7.45
#5B39C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B39C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39C3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39C3#FFFFFF#000000##FFFFFF
##5B39C31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#315D7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b39c3;
/* rgb */ color: rgb(91, 57, 195);
/* oklch */ color: oklch(47.1% 0.202 287.2);
Tailwind
colors: {
  custom: {
    50: '#9372d6',
    500: '#5b39c3',
    950: '#000000',
  },
}
SCSS
$custom: #5b39c3;
$custom-light: #9372d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39c3",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 195
  },
  "hsl": {
    "h": 254.783,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47116,
    "c": 0.20152,
    "h": 287.2
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#5B39C3
secondary
#BCCC8C
accent
#DE4ABA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B39C3

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

Preview Lab → · Contrast checker → · Palette generator →

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