#5A39BB#5A39BB

#5A39BB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.192 H 288.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5A39BB
RGBrgb(90, 57, 187)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 70%, 73%)
CMYKcmyk(51.9%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.37, 46.62, -63.54)
CIE-LCHlch(35.37, 78.81, 306.27°)
OKLaboklab(46.32% 0.0598 -0.1825)
OKLCHoklch(46.32% 0.192 288.1)
XYZxyz(14.6466, 8.6871, 47.9091)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39BB #9ABB39
analogous
#3959BB #5A39BB #9B39BB
triadic
#5A39BB #BB5A39 #39BB5A
tetradic
#5A39BB #BB3959 #9ABB39 #39BB9B
square
#5A39BB #BB3959 #9ABB39 #39BB9B
split-complementary
#5A39BB #BB9B39 #59BB39
monochromatic
#2D1C5D #432B8C #5A39BB #7E62CF #A491DD

Accessibility & contrast

On white

7.67
#5A39BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A39BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39BB
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39BB#FFFFFF#000000##FFFFFF
##5A39BB1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#365A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a39bb;
/* rgb */ color: rgb(90, 57, 187);
/* oklch */ color: oklch(46.3% 0.192 288.1);
Tailwind
colors: {
  custom: {
    50: '#9272d0',
    500: '#5a39bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a39bb;
$custom-light: #9272d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39bb",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 255.231,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46324,
    "c": 0.19202,
    "h": 288.1
  },
  "luminance": 0.08688
}

Semantic roles & 50–950 ramp

primary
#5A39BB
secondary
#B8C887
accent
#DD4BB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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