#5A2EC0#5A2EC0

#5A2EC0 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.210 H 288.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5A2EC0
RGBrgb(90, 46, 192)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 76%, 75%)
CMYKcmyk(53.1%, 76%, 0%, 24.7%)
CIE-LABlab(33.84, 53.58, -69.00)
CIE-LCHlch(33.84, 87.36, 307.83°)
OKLaboklab(45.38% 0.0678 -0.1984)
OKLCHoklch(45.38% 0.21 288.9)
XYZxyz(14.7051, 7.9327, 50.6153)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EC0 #94C02E
analogous
#2E4BC0 #5A2EC0 #A32EC0
triadic
#5A2EC0 #C05A2E #2EC05A
tetradic
#5A2EC0 #C02E4B #94C02E #2EC0A3
square
#5A2EC0 #C02E4B #94C02E #2EC0A3
split-complementary
#5A2EC0 #C0A32E #4BC02E
monochromatic
#2C165D #43228F #5A2EC0 #7C55D6 #A286E2

Accessibility & contrast

On white

8.12
#5A2EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A2EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EC0
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EC0#FFFFFF#000000##FFFFFF
##5A2EC01.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C4
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#325776
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a2ec0;
/* rgb */ color: rgb(90, 46, 192);
/* oklch */ color: oklch(45.4% 0.210 288.9);
Tailwind
colors: {
  custom: {
    50: '#936cd4',
    500: '#5a2ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ec0;
$custom-light: #936cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ec0",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 258.082,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45376,
    "c": 0.20966,
    "h": 288.9
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#5A2EC0
secondary
#B4CC7E
accent
#E443B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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