#5A39B7#5A39B7

#5A39B7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.187 H 288.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5A39B7
RGBrgb(90, 57, 183)
HSLhsl(256, 53%, 47%)
HSVhsv(256, 69%, 72%)
CMYKcmyk(50.8%, 68.9%, 0%, 28.2%)
CIE-LABlab(35.04, 45.46, -61.73)
CIE-LCHlch(35.04, 76.66, 306.37°)
OKLaboklab(45.98% 0.0605 -0.1771)
OKLCHoklch(45.98% 0.187 288.9)
XYZxyz(14.2243, 8.5182, 45.6852)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39B7 #96B739
analogous
#3957B7 #5A39B7 #9939B7
triadic
#5A39B7 #B75A39 #39B75A
tetradic
#5A39B7 #B73957 #96B739 #39B799
square
#5A39B7 #B73957 #96B739 #39B799
split-complementary
#5A39B7 #B79939 #57B739
monochromatic
#2C1C5A #432A88 #5A39B7 #7D60CD #A38EDC

Accessibility & contrast

On white

7.77
#5A39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5A39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39B7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39B7#FFFFFF#000000##FFFFFF
##5A39B71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#395973
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a39b7;
/* rgb */ color: rgb(90, 57, 183);
/* oklch */ color: oklch(46.0% 0.187 288.9);
Tailwind
colors: {
  custom: {
    50: '#9172ce',
    500: '#5a39b7',
    950: '#000000',
  },
}
SCSS
$custom: #5a39b7;
$custom-light: #9172ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39b7",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 255.714,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45981,
    "c": 0.1872,
    "h": 288.9
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#5A39B7
secondary
#B5C785
accent
#DC4CB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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