#5A3EBC#5A3EBC

#5A3EBC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.187 H 287.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5A3EBC
RGBrgb(90, 62, 188)
HSLhsl(253, 50%, 49%)
HSVhsv(253, 67%, 74%)
CMYKcmyk(52.1%, 67%, 0%, 26.3%)
CIE-LABlab(36.46, 44.16, -62.36)
CIE-LCHlch(36.46, 76.41, 305.31°)
OKLaboklab(47.13% 0.055 -0.179)
OKLCHoklch(47.13% 0.187 287.1)
XYZxyz(15.0135, 9.2490, 48.5613)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EBC #A0BC3E
analogous
#3E61BC #5A3EBC #993EBC
triadic
#5A3EBC #BC5A3E #3EBC5A
tetradic
#5A3EBC #BC3E61 #A0BC3E #3EBC99
square
#5A3EBC #BC3E61 #A0BC3E #3EBC99
split-complementary
#5A3EBC #BC993E #61BC3E
monochromatic
#2E2060 #442F8E #5A3EBC #806ACE #A798DD

Accessibility & contrast

On white

7.37
#5A3EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A3EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EBC
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EBC#FFFFFF#000000##FFFFFF
##5A3EBC1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#345E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3ebc;
/* rgb */ color: rgb(90, 62, 188);
/* oklch */ color: oklch(47.1% 0.187 287.1);
Tailwind
colors: {
  custom: {
    50: '#9275d1',
    500: '#5a3ebc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ebc;
$custom-light: #9275d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ebc",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 188
  },
  "hsl": {
    "h": 253.333,
    "s": 50.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47128,
    "c": 0.18727,
    "h": 287.1
  },
  "luminance": 0.0925
}

Semantic roles & 50–950 ramp

primary
#5A3EBC
secondary
#BBC98D
accent
#DA4EBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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