#5A2EEE#5A2EEE

#5A2EEE is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.9% C 0.260 H 282.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5A2EEE
RGBrgb(90, 46, 238)
HSLhsl(254, 85%, 56%)
HSVhsv(254, 81%, 93%)
CMYKcmyk(62.2%, 80.7%, 0%, 6.7%)
CIE-LABlab(38.37, 66.07, -88.05)
CIE-LCHlch(38.37, 110.08, 306.89°)
OKLaboklab(49.88% 0.0541 -0.254)
OKLCHoklch(49.88% 0.26 282)
XYZxyz(20.6212, 10.2992, 81.7736)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EEE #C2EE2E
analogous
#2E62EE #5A2EEE #BA2EEE
triadic
#5A2EEE #EE5A2E #2EEE5A
tetradic
#5A2EEE #EE2E62 #C2EE2E #2EEEBA
square
#5A2EEE #EE2E62 #C2EE2E #2EEEBA
split-complementary
#5A2EEE #EEBA2E #62EE2E
monochromatic
#2C0C95 #3C11CE #5A2EEE #8767F3 #B39FF7

Accessibility & contrast

On white

6.86
#5A2EEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A2EEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A2EEE
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EEE#FFFFFF#000000##FFFFFF
##5A2EEE1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060F3
Deuteranopia (green-blind)
#0053EB
Tritanopia (blue-blind)
#006A90
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a2eee;
/* rgb */ color: rgb(90, 46, 238);
/* oklch */ color: oklch(49.9% 0.260 282.0);
Tailwind
colors: {
  custom: {
    50: '#9b6ef5',
    500: '#5a2eee',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eee;
$custom-light: #9b6ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eee",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 238
  },
  "hsl": {
    "h": 253.75,
    "s": 84.956,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49876,
    "c": 0.2597,
    "h": 282
  },
  "luminance": 0.10301
}

Semantic roles & 50–950 ramp

primary
#5A2EEE
secondary
#D2E494
accent
#FB2DCC
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100817
muted
#7F7B85

Preview Lab

Preview with #5A2EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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