#5A39B2#5A39B2

#5A39B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.181 H 289.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5A39B2
RGBrgb(90, 57, 178)
HSLhsl(256, 51%, 46%)
HSVhsv(256, 68%, 70%)
CMYKcmyk(49.4%, 68%, 0%, 30.2%)
CIE-LABlab(34.63, 44.02, -59.44)
CIE-LCHlch(34.63, 73.96, 306.52°)
OKLaboklab(45.56% 0.0613 -0.1704)
OKLCHoklch(45.56% 0.181 289.8)
XYZxyz(13.7132, 8.3137, 42.9930)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39B2 #91B239
analogous
#3954B2 #5A39B2 #9639B2
triadic
#5A39B2 #B25A39 #39B25A
tetradic
#5A39B2 #B23954 #91B239 #39B296
square
#5A39B2 #B23954 #91B239 #39B296
split-complementary
#5A39B2 #B29639 #54B239
monochromatic
#2B1B55 #432A84 #5A39B2 #7B5DCB #A18BDA

Accessibility & contrast

On white

7.89
#5A39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39B2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39B2#FFFFFF#000000##FFFFFF
##5A39B21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#3C5771
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a39b2;
/* rgb */ color: rgb(90, 57, 178);
/* oklch */ color: oklch(45.6% 0.181 289.8);
Tailwind
colors: {
  custom: {
    50: '#9072ca',
    500: '#5a39b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a39b2;
$custom-light: #9072ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39b2",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 256.364,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.18111,
    "h": 289.8
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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