#5A39BD#5A39BD

#5A39BD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.194 H 287.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5A39BD
RGBrgb(90, 57, 189)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.4%, 69.8%, 0%, 25.9%)
CIE-LABlab(35.54, 47.20, -64.44)
CIE-LCHlch(35.54, 79.88, 306.22°)
OKLaboklab(46.5% 0.0595 -0.1851)
OKLCHoklch(46.5% 0.194 287.8)
XYZxyz(14.8622, 8.7733, 49.0446)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39BD #9CBD39
analogous
#395ABD #5A39BD #9C39BD
triadic
#5A39BD #BD5A39 #39BD5A
tetradic
#5A39BD #BD395A #9CBD39 #39BD9C
square
#5A39BD #BD395A #9CBD39 #39BD9C
split-complementary
#5A39BD #BD9C39 #5ABD39
monochromatic
#2D1D5F #442B8E #5A39BD #7E63D0 #A592DE

Accessibility & contrast

On white

7.62
#5A39BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A39BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39BD
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39BD#FFFFFF#000000##FFFFFF
##5A39BD1.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#345B77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a39bd;
/* rgb */ color: rgb(90, 57, 189);
/* oklch */ color: oklch(46.5% 0.194 287.8);
Tailwind
colors: {
  custom: {
    50: '#9272d2',
    500: '#5a39bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a39bd;
$custom-light: #9272d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39bd",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 255,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46498,
    "c": 0.19443,
    "h": 287.8
  },
  "luminance": 0.08774
}

Semantic roles & 50–950 ramp

primary
#5A39BD
secondary
#B9C989
accent
#DD4BB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A39BD

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

Preview Lab → · Contrast checker → · Palette generator →

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