#5A39BF#5A39BF

#5A39BF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.197 H 287.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5A39BF
RGBrgb(90, 57, 191)
HSLhsl(255, 54%, 49%)
HSVhsv(255, 70%, 75%)
CMYKcmyk(52.9%, 70.2%, 0%, 25.1%)
CIE-LABlab(35.71, 47.78, -65.34)
CIE-LCHlch(35.71, 80.94, 306.18°)
OKLaboklab(46.67% 0.0591 -0.1877)
OKLCHoklch(46.67% 0.197 287.5)
XYZxyz(15.0808, 8.8607, 50.1958)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39BF #9EBF39
analogous
#395BBF #5A39BF #9D39BF
triadic
#5A39BF #BF5A39 #39BF5A
tetradic
#5A39BF #BF395B #9EBF39 #39BF9D
square
#5A39BF #BF395B #9EBF39 #39BF9D
split-complementary
#5A39BF #BF9D39 #5BBF39
monochromatic
#2E1D61 #442B90 #5A39BF #7F64D1 #A693DF

Accessibility & contrast

On white

7.57
#5A39BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A39BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39BF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39BF#FFFFFF#000000##FFFFFF
##5A39BF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#325C78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a39bf;
/* rgb */ color: rgb(90, 57, 191);
/* oklch */ color: oklch(46.7% 0.197 287.5);
Tailwind
colors: {
  custom: {
    50: '#9272d3',
    500: '#5a39bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a39bf;
$custom-light: #9272d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39bf",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 254.776,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46672,
    "c": 0.19683,
    "h": 287.5
  },
  "luminance": 0.08862
}

Semantic roles & 50–950 ramp

primary
#5A39BF
secondary
#BACA8A
accent
#DD4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A39BF

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

Preview Lab → · Contrast checker → · Palette generator →

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