#5B39DA#5B39DA

#5B39DA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.228 H 283.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5B39DA
RGBrgb(91, 57, 218)
HSLhsl(253, 69%, 54%)
HSVhsv(253, 74%, 85%)
CMYKcmyk(58.3%, 73.9%, 0%, 14.5%)
CIE-LABlab(38.22, 55.69, -76.90)
CIE-LCHlch(38.22, 94.95, 305.91°)
OKLaboklab(49.21% 0.0547 -0.2216)
OKLCHoklch(49.21% 0.228 283.9)
XYZxyz(18.4285, 10.2112, 67.3159)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39DA #B8DA39
analogous
#3968DA #5B39DA #AC39DA
triadic
#5B39DA #DA5B39 #39DA5B
tetradic
#5B39DA #DA3968 #B8DA39 #39DAAC
square
#5B39DA #DA3968 #B8DA39 #39DAAC
split-complementary
#5B39DA #DAAC39 #68DA39
monochromatic
#2E1881 #4122B4 #5B39DA #866DE4 #B0A0ED

Accessibility & contrast

On white

6.90
#5B39DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5B39DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B39DA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39DA#FFFFFF#000000##FFFFFF
##5B39DA1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#0055D7
Tritanopia (blue-blind)
#096687
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b39da;
/* rgb */ color: rgb(91, 57, 218);
/* oklch */ color: oklch(49.2% 0.228 283.9);
Tailwind
colors: {
  custom: {
    50: '#9773e7',
    500: '#5b39da',
    950: '#000000',
  },
}
SCSS
$custom: #5b39da;
$custom-light: #9773e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39da",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 218
  },
  "hsl": {
    "h": 252.671,
    "s": 68.511,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49205,
    "c": 0.22822,
    "h": 283.9
  },
  "luminance": 0.10212
}

Semantic roles & 50–950 ramp

primary
#5B39DA
secondary
#CBDA95
accent
#EB3CC6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B39DA

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

Preview Lab → · Contrast checker → · Palette generator →

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