#5A39BA#5A39BA

#5A39BA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.191 H 288.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5A39BA
RGBrgb(90, 57, 186)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(51.6%, 69.4%, 0%, 27.1%)
CIE-LABlab(35.29, 46.33, -63.09)
CIE-LCHlch(35.29, 78.27, 306.29°)
OKLaboklab(46.24% 0.06 -0.1811)
OKLCHoklch(46.24% 0.191 288.3)
XYZxyz(14.5399, 8.6444, 47.3473)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39BA #99BA39
analogous
#3958BA #5A39BA #9A39BA
triadic
#5A39BA #BA5A39 #39BA5A
tetradic
#5A39BA #BA3958 #99BA39 #39BA9A
square
#5A39BA #BA3958 #99BA39 #39BA9A
split-complementary
#5A39BA #BA9A39 #58BA39
monochromatic
#2D1C5C #432B8B #5A39BA #7D61CF #A490DD

Accessibility & contrast

On white

7.70
#5A39BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A39BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39BA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39BA#FFFFFF#000000##FFFFFF
##5A39BA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#365A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a39ba;
/* rgb */ color: rgb(90, 57, 186);
/* oklch */ color: oklch(46.2% 0.191 288.3);
Tailwind
colors: {
  custom: {
    50: '#9272d0',
    500: '#5a39ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a39ba;
$custom-light: #9272d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39ba",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 255.349,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46238,
    "c": 0.19082,
    "h": 288.3
  },
  "luminance": 0.08645
}

Semantic roles & 50–950 ramp

primary
#5A39BA
secondary
#B7C887
accent
#DC4BB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A39BA

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

Preview Lab → · Contrast checker → · Palette generator →

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