#5A39C3#5A39C3

#5A39C3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.202 H 286.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5A39C3
RGBrgb(90, 57, 195)
HSLhsl(254, 55%, 49%)
HSVhsv(254, 71%, 76%)
CMYKcmyk(53.8%, 70.8%, 0%, 23.5%)
CIE-LABlab(36.06, 48.93, -67.12)
CIE-LCHlch(36.06, 83.06, 306.10°)
OKLaboklab(47.02% 0.0583 -0.193)
OKLCHoklch(47.02% 0.202 286.8)
XYZxyz(15.5270, 9.0392, 52.5458)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39C3 #A2C339
analogous
#395DC3 #5A39C3 #9F39C3
triadic
#5A39C3 #C35A39 #39C35A
tetradic
#5A39C3 #C3395D #A2C339 #39C39F
square
#5A39C3 #C3395D #A2C339 #39C39F
split-complementary
#5A39C3 #C39F39 #5DC339
monochromatic
#2E1D64 #442B94 #5A39C3 #8067D2 #A896E0

Accessibility & contrast

On white

7.48
#5A39C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5A39C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39C3
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39C3#FFFFFF#000000##FFFFFF
##5A39C31.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#2E5D7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a39c3;
/* rgb */ color: rgb(90, 57, 195);
/* oklch */ color: oklch(47.0% 0.202 286.8);
Tailwind
colors: {
  custom: {
    50: '#9372d6',
    500: '#5a39c3',
    950: '#000000',
  },
}
SCSS
$custom: #5a39c3;
$custom-light: #9372d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39c3",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 195
  },
  "hsl": {
    "h": 254.348,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47024,
    "c": 0.20159,
    "h": 286.8
  },
  "luminance": 0.0904
}

Semantic roles & 50–950 ramp

primary
#5A39C3
secondary
#BDCC8C
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A39C3

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

Preview Lab → · Contrast checker → · Palette generator →

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