#5A39C5#5A39C5

#5A39C5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.204 H 286.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A39C5
RGBrgb(90, 57, 197)
HSLhsl(254, 55%, 50%)
HSVhsv(254, 71%, 77%)
CMYKcmyk(54.3%, 71.1%, 0%, 22.7%)
CIE-LABlab(36.23, 49.51, -68.00)
CIE-LCHlch(36.23, 84.12, 306.06°)
OKLaboklab(47.2% 0.0579 -0.1956)
OKLCHoklch(47.2% 0.204 286.5)
XYZxyz(15.7546, 9.1303, 53.7447)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39C5 #A4C539
analogous
#395EC5 #5A39C5 #A039C5
triadic
#5A39C5 #C55A39 #39C55A
tetradic
#5A39C5 #C5395E #A4C539 #39C5A0
square
#5A39C5 #C5395E #A4C539 #39C5A0
split-complementary
#5A39C5 #C5A039 #5EC539
monochromatic
#2F1E66 #442B96 #5A39C5 #8168D3 #A997E1

Accessibility & contrast

On white

7.43
#5A39C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A39C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39C5
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39C5#FFFFFF#000000##FFFFFF
##5A39C51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#2C5E7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a39c5;
/* rgb */ color: rgb(90, 57, 197);
/* oklch */ color: oklch(47.2% 0.204 286.5);
Tailwind
colors: {
  custom: {
    50: '#9372d8',
    500: '#5a39c5',
    950: '#000000',
  },
}
SCSS
$custom: #5a39c5;
$custom-light: #9372d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39c5",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 254.143,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47201,
    "c": 0.20395,
    "h": 286.5
  },
  "luminance": 0.09131
}

Semantic roles & 50–950 ramp

primary
#5A39C5
secondary
#BECD8D
accent
#DE49BB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A39C5

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

Preview Lab → · Contrast checker → · Palette generator →

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