#5A2ED3#5A2ED3

#5A2ED3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.231 H 285.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5A2ED3
RGBrgb(90, 46, 211)
HSLhsl(256, 65%, 50%)
HSVhsv(256, 78%, 83%)
CMYKcmyk(57.3%, 78.2%, 0%, 17.3%)
CIE-LABlab(35.65, 58.78, -77.09)
CIE-LCHlch(35.65, 96.94, 307.32°)
OKLaboklab(47.19% 0.0624 -0.2221)
OKLCHoklch(47.19% 0.231 285.7)
XYZxyz(16.9478, 8.8298, 62.4267)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2ED3 #A7D32E
analogous
#2E54D3 #5A2ED3 #AC2ED3
triadic
#5A2ED3 #D35A2E #2ED35A
tetradic
#5A2ED3 #D32E54 #A7D32E #2ED3AC
square
#5A2ED3 #D32E54 #A7D32E #2ED3AC
split-complementary
#5A2ED3 #D3AC2E #54D32E
monochromatic
#2F176F #4422A2 #5A2ED3 #8261DE #AA93E8

Accessibility & contrast

On white

7.59
#5A2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A2ED3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2ED3
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2ED3#FFFFFF#000000##FFFFFF
##5A2ED31.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#195F80
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a2ed3;
/* rgb */ color: rgb(90, 46, 211);
/* oklch */ color: oklch(47.2% 0.231 285.7);
Tailwind
colors: {
  custom: {
    50: '#966de2',
    500: '#5a2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ed3;
$custom-light: #966de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ed3",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 256,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47187,
    "c": 0.23066,
    "h": 285.7
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#5A2ED3
secondary
#C0D38A
accent
#E840BB
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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