#5A39C8#5A39C8

#5A39C8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.5% C 0.207 H 286.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5A39C8
RGBrgb(90, 57, 200)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 72%, 78%)
CMYKcmyk(55%, 71.5%, 0%, 21.6%)
CIE-LABlab(36.50, 50.38, -69.32)
CIE-LCHlch(36.50, 85.69, 306.01°)
OKLaboklab(47.47% 0.0573 -0.1994)
OKLCHoklch(47.47% 0.207 286)
XYZxyz(16.1018, 9.2692, 55.5731)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39C8 #A7C839
analogous
#395FC8 #5A39C8 #A139C8
triadic
#5A39C8 #C85A39 #39C85A
tetradic
#5A39C8 #C8395F #A7C839 #39C8A1
square
#5A39C8 #C8395F #A7C839 #39C8A1
split-complementary
#5A39C8 #C8A139 #5FC839
monochromatic
#2F1D69 #442B99 #5A39C8 #8269D5 #AA99E3

Accessibility & contrast

On white

7.36
#5A39C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A39C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39C8
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39C8#FFFFFF#000000##FFFFFF
##5A39C81.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#295F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a39c8;
/* rgb */ color: rgb(90, 57, 200);
/* oklch */ color: oklch(47.5% 0.207 286.0);
Tailwind
colors: {
  custom: {
    50: '#9472da',
    500: '#5a39c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a39c8;
$custom-light: #9472da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39c8",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 253.846,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47469,
    "c": 0.20749,
    "h": 286
  },
  "luminance": 0.0927
}

Semantic roles & 50–950 ramp

primary
#5A39C8
secondary
#C0CE8F
accent
#E048BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A39C8

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

Preview Lab → · Contrast checker → · Palette generator →

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