#5A33CC#5A33CC

#5A33CC is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.1% C 0.218 H 286.2°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5A33CC
RGBrgb(90, 51, 204)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 75%, 80%)
CMYKcmyk(55.9%, 75%, 0%, 20%)
CIE-LABlab(35.79, 54.53, -72.81)
CIE-LCHlch(35.79, 90.97, 306.83°)
OKLaboklab(47.08% 0.061 -0.2096)
OKLCHoklch(47.08% 0.218 286.2)
XYZxyz(16.2961, 8.9000, 57.9742)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33CC #A5CC33
analogous
#3359CC #5A33CC #A633CC
triadic
#5A33CC #CC5A33 #33CC5A
tetradic
#5A33CC #CC3359 #A5CC33 #33CCA6
square
#5A33CC #CC3359 #A5CC33 #33CCA6
split-complementary
#5A33CC #CCA633 #59CC33
monochromatic
#2F1B6A #44279B #5A33CC #8264D8 #A995E4

Accessibility & contrast

On white

7.55
#5A33CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5A33CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33CC
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33CC#FFFFFF#000000##FFFFFF
##5A33CC1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#245E7E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a33cc;
/* rgb */ color: rgb(90, 51, 204);
/* oklch */ color: oklch(47.1% 0.218 286.2);
Tailwind
colors: {
  custom: {
    50: '#956fdd',
    500: '#5a33cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a33cc;
$custom-light: #956fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33cc",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 204
  },
  "hsl": {
    "h": 255.294,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.47081,
    "c": 0.21828,
    "h": 286.2
  },
  "luminance": 0.08901
}

Semantic roles & 50–950 ramp

primary
#5A33CC
secondary
#BED08B
accent
#E345BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A33CC

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

Preview Lab → · Contrast checker → · Palette generator →

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