#5B39CA#5B39CA

#5B39CA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.210 H 286.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5B39CA
RGBrgb(91, 57, 202)
HSLhsl(254, 58%, 51%)
HSVhsv(254, 72%, 79%)
CMYKcmyk(55%, 71.8%, 0%, 20.8%)
CIE-LABlab(36.77, 51.10, -70.03)
CIE-LCHlch(36.77, 86.70, 306.12°)
OKLaboklab(47.74% 0.0583 -0.2015)
OKLCHoklch(47.74% 0.21 286.1)
XYZxyz(16.4350, 9.4138, 56.8167)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39CA #A8CA39
analogous
#395FCA #5B39CA #A339CA
triadic
#5B39CA #CA5B39 #39CA5B
tetradic
#5B39CA #CA395F #A8CA39 #39CAA3
square
#5B39CA #CA395F #A8CA39 #39CAA3
split-complementary
#5B39CA #CAA339 #5FCA39
monochromatic
#2F1D6C #452A9C #5B39CA #8369D7 #AB9AE4

Accessibility & contrast

On white

7.28
#5B39CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B39CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39CA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39CA#FFFFFF#000000##FFFFFF
##5B39CA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#29607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b39ca;
/* rgb */ color: rgb(91, 57, 202);
/* oklch */ color: oklch(47.7% 0.210 286.1);
Tailwind
colors: {
  custom: {
    50: '#9573db',
    500: '#5b39ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b39ca;
$custom-light: #9573db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39ca",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 254.069,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.20975,
    "h": 286.1
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#5B39CA
secondary
#C0D08F
accent
#E147BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B39CA

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

Preview Lab → · Contrast checker → · Palette generator →

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