#5A39CC#5A39CC

#5A39CC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.8% C 0.212 H 285.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5A39CC
RGBrgb(90, 57, 204)
HSLhsl(253, 59%, 51%)
HSVhsv(253, 72%, 80%)
CMYKcmyk(55.9%, 72.1%, 0%, 20%)
CIE-LABlab(36.85, 51.53, -71.06)
CIE-LCHlch(36.85, 87.78, 305.95°)
OKLaboklab(47.83% 0.0565 -0.2045)
OKLCHoklch(47.83% 0.212 285.4)
XYZxyz(16.5754, 9.4586, 58.0673)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39CC #ABCC39
analogous
#3961CC #5A39CC #A339CC
triadic
#5A39CC #CC5A39 #39CC5A
tetradic
#5A39CC #CC3961 #ABCC39 #39CCA3
square
#5A39CC #CC3961 #ABCC39 #39CCA3
split-complementary
#5A39CC #CCA339 #61CC39
monochromatic
#2F1C6E #43299F #5A39CC #836AD9 #AB9AE5

Accessibility & contrast

On white

7.26
#5A39CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A39CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39CC
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39CC#FFFFFF#000000##FFFFFF
##5A39CC1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#24617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a39cc;
/* rgb */ color: rgb(90, 57, 204);
/* oklch */ color: oklch(47.8% 0.212 285.4);
Tailwind
colors: {
  custom: {
    50: '#9473dd',
    500: '#5a39cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a39cc;
$custom-light: #9473dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39cc",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 253.469,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4783,
    "c": 0.21218,
    "h": 285.4
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#5A39CC
secondary
#C2D190
accent
#E246BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A39CC

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

Preview Lab → · Contrast checker → · Palette generator →

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