#5B39CD#5B39CD

#5B39CD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.213 H 285.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5B39CD
RGBrgb(91, 57, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 72%, 80%)
CMYKcmyk(55.6%, 72.2%, 0%, 19.6%)
CIE-LABlab(37.04, 51.97, -71.34)
CIE-LCHlch(37.04, 88.26, 306.07°)
OKLaboklab(48.01% 0.0577 -0.2053)
OKLCHoklch(48.01% 0.213 285.7)
XYZxyz(16.7936, 9.5572, 58.7056)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39CD #ABCD39
analogous
#3961CD #5B39CD #A539CD
triadic
#5B39CD #CD5B39 #39CD5B
tetradic
#5B39CD #CD3961 #ABCD39 #39CDA5
square
#5B39CD #CD3961 #ABCD39 #39CDA5
split-complementary
#5B39CD #CDA539 #61CD39
monochromatic
#2F1C6F #4428A0 #5B39CD #836AD9 #AC9BE6

Accessibility & contrast

On white

7.21
#5B39CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B39CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39CD
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39CD#FFFFFF#000000##FFFFFF
##5B39CD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#266180
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b39cd;
/* rgb */ color: rgb(91, 57, 205);
/* oklch */ color: oklch(48.0% 0.213 285.7);
Tailwind
colors: {
  custom: {
    50: '#9573dd',
    500: '#5b39cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b39cd;
$custom-light: #9573dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39cd",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 253.784,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48009,
    "c": 0.21325,
    "h": 285.7
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#5B39CD
secondary
#C3D290
accent
#E345BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B39CD

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

Preview Lab → · Contrast checker → · Palette generator →

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