#5A39CE#5A39CE

#5A39CE is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.215 H 285.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5A39CE
RGBrgb(90, 57, 206)
HSLhsl(253, 60%, 52%)
HSVhsv(253, 72%, 81%)
CMYKcmyk(56.3%, 72.3%, 0%, 19.2%)
CIE-LABlab(37.03, 52.11, -71.93)
CIE-LCHlch(37.03, 88.82, 305.92°)
OKLaboklab(48.01% 0.056 -0.2071)
OKLCHoklch(48.01% 0.215 285.1)
XYZxyz(16.8168, 9.5552, 59.3387)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39CE #ADCE39
analogous
#3963CE #5A39CE #A539CE
triadic
#5A39CE #CE5A39 #39CE5A
tetradic
#5A39CE #CE3963 #ADCE39 #39CEA5
square
#5A39CE #CE3963 #ADCE39 #39CEA5
split-complementary
#5A39CE #CEA539 #63CE39
monochromatic
#2F1C71 #4328A2 #5A39CE #836ADA #AC9BE6

Accessibility & contrast

On white

7.21
#5A39CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A39CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39CE
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39CE#FFFFFF#000000##FFFFFF
##5A39CE1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#216280
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a39ce;
/* rgb */ color: rgb(90, 57, 206);
/* oklch */ color: oklch(48.0% 0.215 285.1);
Tailwind
colors: {
  custom: {
    50: '#9573de',
    500: '#5a39ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a39ce;
$custom-light: #9573de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39ce",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 206
  },
  "hsl": {
    "h": 253.289,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48012,
    "c": 0.21451,
    "h": 285.1
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#5A39CE
secondary
#C4D291
accent
#E344C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A39CE

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

Preview Lab → · Contrast checker → · Palette generator →

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