#5A2EC3#5A2EC3

#5A2EC3 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.213 H 288.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5A2EC3
RGBrgb(90, 46, 195)
HSLhsl(258, 62%, 47%)
HSVhsv(258, 76%, 76%)
CMYKcmyk(53.8%, 76.4%, 0%, 23.5%)
CIE-LABlab(34.12, 54.40, -70.30)
CIE-LCHlch(34.12, 88.89, 307.74°)
OKLaboklab(45.66% 0.067 -0.2022)
OKLCHoklch(45.66% 0.213 288.3)
XYZxyz(15.0409, 8.0670, 52.3837)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EC3 #97C32E
analogous
#2E4DC3 #5A2EC3 #A52EC3
triadic
#5A2EC3 #C35A2E #2EC35A
tetradic
#5A2EC3 #C32E4D #97C32E #2EC3A5
square
#5A2EC3 #C32E4D #97C32E #2EC3A5
split-complementary
#5A2EC3 #C3A52E #4DC32E
monochromatic
#2C1760 #432291 #5A2EC3 #7D57D7 #A388E3

Accessibility & contrast

On white

8.03
#5A2EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5A2EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EC3
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EC3#FFFFFF#000000##FFFFFF
##5A2EC31.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#2F5877
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a2ec3;
/* rgb */ color: rgb(90, 46, 195);
/* oklch */ color: oklch(45.7% 0.213 288.3);
Tailwind
colors: {
  custom: {
    50: '#946cd6',
    500: '#5a2ec3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ec3;
$custom-light: #946cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ec3",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 257.718,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45656,
    "c": 0.21301,
    "h": 288.3
  },
  "luminance": 0.08068
}

Semantic roles & 50–950 ramp

primary
#5A2EC3
secondary
#B6CD80
accent
#E543B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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