#5A3BDE#5A3BDE

#5A3BDE is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.231 H 282.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5A3BDE
RGBrgb(90, 59, 222)
HSLhsl(251, 71%, 55%)
HSVhsv(251, 73%, 87%)
CMYKcmyk(59.5%, 73.4%, 0%, 12.9%)
CIE-LABlab(38.85, 55.71, -78.15)
CIE-LCHlch(38.85, 95.98, 305.49°)
OKLaboklab(49.74% 0.051 -0.2253)
OKLCHoklch(49.74% 0.231 282.8)
XYZxyz(18.9611, 10.5742, 70.1349)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BDE #BFDE3B
analogous
#3B6EDE #5A3BDE #AB3BDE
triadic
#5A3BDE #DE5A3B #3BDE5A
tetradic
#5A3BDE #DE3B6E #BFDE3B #3BDEAB
square
#5A3BDE #DE3B6E #BFDE3B #3BDEAB
split-complementary
#5A3BDE #DEAB3B #6EDE3B
monochromatic
#2C1788 #3D20BC #5A3BDE #866FE7 #B2A4F0

Accessibility & contrast

On white

6.74
#5A3BDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5A3BDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3BDE
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BDE#FFFFFF#000000##FFFFFF
##5A3BDE1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E3
Deuteranopia (green-blind)
#0056DB
Tritanopia (blue-blind)
#00698A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a3bde;
/* rgb */ color: rgb(90, 59, 222);
/* oklch */ color: oklch(49.7% 0.231 282.8);
Tailwind
colors: {
  custom: {
    50: '#9775ea',
    500: '#5a3bde',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bde;
$custom-light: #9775ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bde",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 222
  },
  "hsl": {
    "h": 251.411,
    "s": 71.179,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49743,
    "c": 0.23097,
    "h": 282.8
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#5A3BDE
secondary
#D0DD98
accent
#EE3ACC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A3BDE

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

Preview Lab → · Contrast checker → · Palette generator →

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