#5A39BC#5A39BC

#5A39BC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.193 H 288.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5A39BC
RGBrgb(90, 57, 188)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.1%, 69.7%, 0%, 26.3%)
CIE-LABlab(35.46, 46.91, -63.99)
CIE-LCHlch(35.46, 79.34, 306.24°)
OKLaboklab(46.41% 0.0596 -0.1838)
OKLCHoklch(46.41% 0.193 288)
XYZxyz(14.7540, 8.7300, 48.4749)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39BC #9BBC39
analogous
#3959BC #5A39BC #9C39BC
triadic
#5A39BC #BC5A39 #39BC5A
tetradic
#5A39BC #BC3959 #9BBC39 #39BC9C
square
#5A39BC #BC3959 #9BBC39 #39BC9C
split-complementary
#5A39BC #BC9C39 #59BC39
monochromatic
#2D1D5E #442B8D #5A39BC #7E63D0 #A592DE

Accessibility & contrast

On white

7.65
#5A39BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A39BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A39BC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39BC#FFFFFF#000000##FFFFFF
##5A39BC1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#355B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a39bc;
/* rgb */ color: rgb(90, 57, 188);
/* oklch */ color: oklch(46.4% 0.193 288.0);
Tailwind
colors: {
  custom: {
    50: '#9272d1',
    500: '#5a39bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a39bc;
$custom-light: #9272d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39bc",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 188
  },
  "hsl": {
    "h": 255.115,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46411,
    "c": 0.19323,
    "h": 288
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#5A39BC
secondary
#B8C988
accent
#DD4BB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A39BC

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

Preview Lab → · Contrast checker → · Palette generator →

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