#5A3EBF#5A3EBF

#5A3EBF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.191 H 286.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5A3EBF
RGBrgb(90, 62, 191)
HSLhsl(253, 51%, 50%)
HSVhsv(253, 68%, 75%)
CMYKcmyk(52.9%, 67.5%, 0%, 25.1%)
CIE-LABlab(36.71, 45.05, -63.72)
CIE-LCHlch(36.71, 78.04, 305.26°)
OKLaboklab(47.38% 0.0546 -0.183)
OKLCHoklch(47.38% 0.191 286.6)
XYZxyz(15.3402, 9.3797, 50.2823)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EBF #A3BF3E
analogous
#3E63BF #5A3EBF #9A3EBF
triadic
#5A3EBF #BF5A3E #3EBF5A
tetradic
#5A3EBF #BF3E63 #A3BF3E #3EBF9A
square
#5A3EBF #BF3E63 #A3BF3E #3EBF9A
split-complementary
#5A3EBF #BF9A3E #63BF3E
monochromatic
#2E2063 #442F91 #5A3EBF #816BCF #A899DE

Accessibility & contrast

On white

7.30
#5A3EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5A3EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EBF
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EBF#FFFFFF#000000##FFFFFF
##5A3EBF1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#325F79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3ebf;
/* rgb */ color: rgb(90, 62, 191);
/* oklch */ color: oklch(47.4% 0.191 286.6);
Tailwind
colors: {
  custom: {
    50: '#9275d3',
    500: '#5a3ebf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ebf;
$custom-light: #9275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ebf",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 191
  },
  "hsl": {
    "h": 253.023,
    "s": 50.988,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.19097,
    "h": 286.6
  },
  "luminance": 0.0938
}

Semantic roles & 50–950 ramp

primary
#5A3EBF
secondary
#BDCA8F
accent
#DA4DBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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