#5B39CC#5B39CC

#5B39CC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.212 H 285.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5B39CC
RGBrgb(91, 57, 204)
HSLhsl(254, 59%, 51%)
HSVhsv(254, 72%, 80%)
CMYKcmyk(55.4%, 72.1%, 0%, 20%)
CIE-LABlab(36.95, 51.68, -70.91)
CIE-LCHlch(36.95, 87.74, 306.09°)
OKLaboklab(47.92% 0.0579 -0.204)
OKLCHoklch(47.92% 0.212 285.8)
XYZxyz(16.6733, 9.5091, 58.0719)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39CC #AACC39
analogous
#3960CC #5B39CC #A539CC
triadic
#5B39CC #CC5B39 #39CC5B
tetradic
#5B39CC #CC3960 #AACC39 #39CCA5
square
#5B39CC #CC3960 #AACC39 #39CCA5
split-complementary
#5B39CC #CCA539 #60CC39
monochromatic
#2F1C6E #44299F #5B39CC #836AD9 #AC9AE5

Accessibility & contrast

On white

7.24
#5B39CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B39CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39CC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39CC#FFFFFF#000000##FFFFFF
##5B39CC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#27617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b39cc;
/* rgb */ color: rgb(91, 57, 204);
/* oklch */ color: oklch(47.9% 0.212 285.8);
Tailwind
colors: {
  custom: {
    50: '#9573dd',
    500: '#5b39cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b39cc;
$custom-light: #9573dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39cc",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 253.878,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47919,
    "c": 0.21208,
    "h": 285.8
  },
  "luminance": 0.0951
}

Semantic roles & 50–950 ramp

primary
#5B39CC
secondary
#C2D190
accent
#E246BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B39CC

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

Preview Lab → · Contrast checker → · Palette generator →

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