#5A39B1#5A39B1

#5A39B1 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.180 H 290.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5A39B1
RGBrgb(90, 57, 177)
HSLhsl(257, 51%, 46%)
HSVhsv(257, 68%, 69%)
CMYKcmyk(49.2%, 67.8%, 0%, 30.6%)
CIE-LABlab(34.55, 43.73, -58.98)
CIE-LCHlch(34.55, 73.42, 306.56°)
OKLaboklab(45.47% 0.0615 -0.1691)
OKLCHoklch(45.47% 0.18 290)
XYZxyz(13.6131, 8.2737, 42.4662)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39B1 #90B139
analogous
#3954B1 #5A39B1 #9639B1
triadic
#5A39B1 #B15A39 #39B15A
tetradic
#5A39B1 #B13954 #90B139 #39B196
square
#5A39B1 #B13954 #90B139 #39B196
split-complementary
#5A39B1 #B19639 #54B139
monochromatic
#2B1B54 #422A83 #5A39B1 #7B5DCB #A08BDA

Accessibility & contrast

On white

7.91
#5A39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39B1
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39B1#FFFFFF#000000##FFFFFF
##5A39B11.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#3D5770
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a39b1;
/* rgb */ color: rgb(90, 57, 177);
/* oklch */ color: oklch(45.5% 0.180 290.0);
Tailwind
colors: {
  custom: {
    50: '#9072c9',
    500: '#5a39b1',
    950: '#000000',
  },
}
SCSS
$custom: #5a39b1;
$custom-light: #9072c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39b1",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 256.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45474,
    "c": 0.17989,
    "h": 290
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#5A39B1
secondary
#B2C482
accent
#DB4DB4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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