#5B39AE#5B39AE

#5B39AE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.176 H 291.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5B39AE
RGBrgb(91, 57, 174)
HSLhsl(257, 51%, 45%)
HSVhsv(257, 67%, 68%)
CMYKcmyk(47.7%, 67.2%, 0%, 31.8%)
CIE-LABlab(34.41, 43.05, -57.41)
CIE-LCHlch(34.41, 71.76, 306.87°)
OKLaboklab(45.32% 0.0633 -0.1644)
OKLCHoklch(45.32% 0.176 291.1)
XYZxyz(13.4153, 8.2059, 40.9132)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39AE #8CAE39
analogous
#3951AE #5B39AE #9539AE
triadic
#5B39AE #AE5B39 #39AE5B
tetradic
#5B39AE #AE3951 #8CAE39 #39AE95
square
#5B39AE #AE3951 #8CAE39 #39AE95
split-complementary
#5B39AE #AE9539 #51AE39
monochromatic
#2B1B52 #432A80 #5B39AE #7B5BC9 #A089D8

Accessibility & contrast

On white

7.95
#5B39AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B39AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39AE
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39AE#FFFFFF#000000##FFFFFF
##5B39AE1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#41566E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b39ae;
/* rgb */ color: rgb(91, 57, 174);
/* oklch */ color: oklch(45.3% 0.176 291.1);
Tailwind
colors: {
  custom: {
    50: '#9172c7',
    500: '#5b39ae',
    950: '#000000',
  },
}
SCSS
$custom: #5b39ae;
$custom-light: #9172c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39ae",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 174
  },
  "hsl": {
    "h": 257.436,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45324,
    "c": 0.17621,
    "h": 291.1
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#5B39AE
secondary
#AFC380
accent
#DA4EB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B39AE

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

Preview Lab → · Contrast checker → · Palette generator →

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