#5A33C8#5A33C8

#5A33C8 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.214 H 286.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5A33C8
RGBrgb(90, 51, 200)
HSLhsl(256, 59%, 49%)
HSVhsv(256, 75%, 78%)
CMYKcmyk(55%, 74.5%, 0%, 21.6%)
CIE-LABlab(35.42, 53.41, -71.09)
CIE-LCHlch(35.42, 88.92, 306.92°)
OKLaboklab(46.71% 0.062 -0.2046)
OKLCHoklch(46.71% 0.214 286.9)
XYZxyz(15.8225, 8.7106, 55.4800)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33C8 #A1C833
analogous
#3356C8 #5A33C8 #A533C8
triadic
#5A33C8 #C85A33 #33C85A
tetradic
#5A33C8 #C83356 #A1C833 #33C8A5
square
#5A33C8 #C83356 #A1C833 #33C8A5
split-complementary
#5A33C8 #C8A533 #56C833
monochromatic
#2E1A66 #442797 #5A33C8 #8061D7 #A792E3

Accessibility & contrast

On white

7.66
#5A33C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A33C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33C8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33C8#FFFFFF#000000##FFFFFF
##5A33C81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#295C7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a33c8;
/* rgb */ color: rgb(90, 51, 200);
/* oklch */ color: oklch(46.7% 0.214 286.9);
Tailwind
colors: {
  custom: {
    50: '#946fda',
    500: '#5a33c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a33c8;
$custom-light: #946fda;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33c8",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 200
  },
  "hsl": {
    "h": 255.705,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.21374,
    "h": 286.9
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#5A33C8
secondary
#BCCE89
accent
#E345B9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A33C8

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

Preview Lab → · Contrast checker → · Palette generator →

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