#5A39B5#5A39B5

#5A39B5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.185 H 289.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5A39B5
RGBrgb(90, 57, 181)
HSLhsl(256, 52%, 47%)
HSVhsv(256, 69%, 71%)
CMYKcmyk(50.3%, 68.5%, 0%, 29%)
CIE-LABlab(34.87, 44.89, -60.82)
CIE-LCHlch(34.87, 75.59, 306.43°)
OKLaboklab(45.81% 0.0608 -0.1745)
OKLCHoklch(45.81% 0.185 289.2)
XYZxyz(14.0177, 8.4355, 44.5967)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39B5 #94B539
analogous
#3956B5 #5A39B5 #9839B5
triadic
#5A39B5 #B55A39 #39B55A
tetradic
#5A39B5 #B53956 #94B539 #39B598
square
#5A39B5 #B53956 #94B539 #39B598
split-complementary
#5A39B5 #B59839 #56B539
monochromatic
#2C1C58 #432A86 #5A39B5 #7C5FCD #A28DDB

Accessibility & contrast

On white

7.81
#5A39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A39B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39B5
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39B5#FFFFFF#000000##FFFFFF
##5A39B51.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#3A5872
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a39b5;
/* rgb */ color: rgb(90, 57, 181);
/* oklch */ color: oklch(45.8% 0.185 289.2);
Tailwind
colors: {
  custom: {
    50: '#9172cc',
    500: '#5a39b5',
    950: '#000000',
  },
}
SCSS
$custom: #5a39b5;
$custom-light: #9172cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39b5",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 255.968,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.18477,
    "h": 289.2
  },
  "luminance": 0.08436
}

Semantic roles & 50–950 ramp

primary
#5A39B5
secondary
#B4C684
accent
#DC4CB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5A39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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