#5A33C2#5A33C2

#5A33C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.207 H 287.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5A33C2
RGBrgb(90, 51, 194)
HSLhsl(256, 58%, 48%)
HSVhsv(256, 74%, 76%)
CMYKcmyk(53.6%, 73.7%, 0%, 23.9%)
CIE-LABlab(34.87, 51.72, -68.48)
CIE-LCHlch(34.87, 85.82, 307.07°)
OKLaboklab(46.16% 0.0634 -0.1969)
OKLCHoklch(46.16% 0.207 287.9)
XYZxyz(15.1350, 8.4356, 51.8592)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33C2 #9BC233
analogous
#3353C2 #5A33C2 #A133C2
triadic
#5A33C2 #C25A33 #33C25A
tetradic
#5A33C2 #C23353 #9BC233 #33C2A1
square
#5A33C2 #C23353 #9BC233 #33C2A1
split-complementary
#5A33C2 #C2A133 #53C233
monochromatic
#2D1A61 #442692 #5A33C2 #7E5ED5 #A58EE1

Accessibility & contrast

On white

7.81
#5A33C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A33C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33C2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33C2#FFFFFF#000000##FFFFFF
##5A33C21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#305A78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a33c2;
/* rgb */ color: rgb(90, 51, 194);
/* oklch */ color: oklch(46.2% 0.207 287.9);
Tailwind
colors: {
  custom: {
    50: '#936fd6',
    500: '#5a33c2',
    950: '#000000',
  },
}
SCSS
$custom: #5a33c2;
$custom-light: #936fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33c2",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 194
  },
  "hsl": {
    "h": 256.364,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46157,
    "c": 0.20688,
    "h": 287.9
  },
  "luminance": 0.08436
}

Semantic roles & 50–950 ramp

primary
#5A33C2
secondary
#B8CC85
accent
#E246B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A33C2

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

Preview Lab → · Contrast checker → · Palette generator →

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