#5A3ECB#5A3ECB

#5A3ECB is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.206 H 284.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5A3ECB
RGBrgb(90, 62, 203)
HSLhsl(252, 58%, 52%)
HSVhsv(252, 69%, 80%)
CMYKcmyk(55.7%, 69.5%, 0%, 20.4%)
CIE-LABlab(37.72, 48.60, -69.07)
CIE-LCHlch(37.72, 84.45, 305.13°)
OKLaboklab(48.42% 0.0526 -0.1987)
OKLCHoklch(48.42% 0.206 284.8)
XYZxyz(16.7153, 9.9297, 57.5242)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ECB #AFCB3E
analogous
#3E69CB #5A3ECB #A13ECB
triadic
#5A3ECB #CB5A3E #3ECB5A
tetradic
#5A3ECB #CB3E69 #AFCB3E #3ECBA1
square
#5A3ECB #CB3E69 #AFCB3E #3ECBA1
split-complementary
#5A3ECB #CBA13E #69CB3E
monochromatic
#2F1E70 #432BA1 #5A3ECB #836ED8 #AC9EE5

Accessibility & contrast

On white

7.03
#5A3ECB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5A3ECB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ECB
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ECB#FFFFFF#000000##FFFFFF
##5A3ECB1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#246380
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3ecb;
/* rgb */ color: rgb(90, 62, 203);
/* oklch */ color: oklch(48.4% 0.206 284.8);
Tailwind
colors: {
  custom: {
    50: '#9476dc',
    500: '#5a3ecb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ecb;
$custom-light: #9476dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ecb",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 203
  },
  "hsl": {
    "h": 251.915,
    "s": 57.551,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48417,
    "c": 0.20555,
    "h": 284.8
  },
  "luminance": 0.09931
}

Semantic roles & 50–950 ramp

primary
#5A3ECB
secondary
#C5D194
accent
#E147C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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