#5A2EDB#5A2EDB

#5A2EDB is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.239 H 284.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5A2EDB
RGBrgb(90, 46, 219)
HSLhsl(255, 71%, 52%)
HSVhsv(255, 79%, 86%)
CMYKcmyk(58.9%, 79%, 0%, 14.1%)
CIE-LABlab(36.44, 60.95, -80.40)
CIE-LCHlch(36.44, 100.89, 307.17°)
OKLaboklab(47.97% 0.0599 -0.2317)
OKLCHoklch(47.97% 0.239 284.5)
XYZxyz(17.9757, 9.2410, 67.8406)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EDB #AFDB2E
analogous
#2E59DB #5A2EDB #B02EDB
triadic
#5A2EDB #DB5A2E #2EDB5A
tetradic
#5A2EDB #DB2E59 #AFDB2E #2EDBB0
square
#5A2EDB #DB2E59 #AFDB2E #2EDBB0
split-complementary
#5A2EDB #DBB02E #59DB2E
monochromatic
#2F157A #431EAE #5A2EDB #8362E4 #AC96ED

Accessibility & contrast

On white

7.37
#5A2EDB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A2EDB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EDB
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EDB#FFFFFF#000000##FFFFFF
##5A2EDB1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE0
Deuteranopia (green-blind)
#0050D8
Tritanopia (blue-blind)
#006285
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a2edb;
/* rgb */ color: rgb(90, 46, 219);
/* oklch */ color: oklch(48.0% 0.239 284.5);
Tailwind
colors: {
  custom: {
    50: '#976de8',
    500: '#5a2edb',
    950: '#000000',
  },
}
SCSS
$custom: #5a2edb;
$custom-light: #976de8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2edb",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 219
  },
  "hsl": {
    "h": 255.26,
    "s": 70.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47971,
    "c": 0.23935,
    "h": 284.5
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#5A2EDB
secondary
#C5D88D
accent
#ED3AC0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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