#5A33E2#5A33E2

#5A33E2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.243 H 283.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5A33E2
RGBrgb(90, 51, 226)
HSLhsl(253, 75%, 54%)
HSVhsv(253, 77%, 89%)
CMYKcmyk(60.2%, 77.4%, 0%, 11.4%)
CIE-LABlab(37.90, 60.67, -82.01)
CIE-LCHlch(37.90, 102.01, 306.49°)
OKLaboklab(49.19% 0.055 -0.2365)
OKLCHoklch(49.19% 0.243 283.1)
XYZxyz(19.1235, 10.0310, 72.8652)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33E2 #BBE233
analogous
#3364E2 #5A33E2 #B133E2
triadic
#5A33E2 #E25A33 #33E25A
tetradic
#5A33E2 #E23364 #BBE233 #33E2B1
square
#5A33E2 #E23364 #BBE233 #33E2B1
split-complementary
#5A33E2 #E2B133 #64E233
monochromatic
#2D1387 #3F1BBD #5A33E2 #8569EA #B19EF1

Accessibility & contrast

On white

6.99
#5A33E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A33E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A33E2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33E2#FFFFFF#000000##FFFFFF
##5A33E21.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#00678A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a33e2;
/* rgb */ color: rgb(90, 51, 226);
/* oklch */ color: oklch(49.2% 0.243 283.1);
Tailwind
colors: {
  custom: {
    50: '#9870ed',
    500: '#5a33e2',
    950: '#000000',
  },
}
SCSS
$custom: #5a33e2;
$custom-light: #9870ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33e2",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 226
  },
  "hsl": {
    "h": 253.371,
    "s": 75.107,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49188,
    "c": 0.2428,
    "h": 283.1
  },
  "luminance": 0.10032
}

Semantic roles & 50–950 ramp

primary
#5A33E2
secondary
#CDDE93
accent
#F236C8
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A33E2

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

Preview Lab → · Contrast checker → · Palette generator →

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