#5A33CA#5A33CA

#5A33CA is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.216 H 286.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5A33CA
RGBrgb(90, 51, 202)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 75%, 79%)
CMYKcmyk(55.4%, 74.8%, 0%, 20.8%)
CIE-LABlab(35.61, 53.97, -71.95)
CIE-LCHlch(35.61, 89.94, 306.88°)
OKLaboklab(46.89% 0.0615 -0.2071)
OKLCHoklch(46.89% 0.216 286.5)
XYZxyz(16.0578, 8.8047, 56.7190)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33CA #A3CA33
analogous
#3357CA #5A33CA #A633CA
triadic
#5A33CA #CA5A33 #33CA5A
tetradic
#5A33CA #CA3357 #A3CA33 #33CAA6
square
#5A33CA #CA3357 #A3CA33 #33CAA6
split-complementary
#5A33CA #CAA633 #57CA33
monochromatic
#2E1A68 #442799 #5A33CA #8163D8 #A894E4

Accessibility & contrast

On white

7.61
#5A33CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A33CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33CA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33CA#FFFFFF#000000##FFFFFF
##5A33CA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#275D7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a33ca;
/* rgb */ color: rgb(90, 51, 202);
/* oklch */ color: oklch(46.9% 0.216 286.5);
Tailwind
colors: {
  custom: {
    50: '#946fdb',
    500: '#5a33ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a33ca;
$custom-light: #946fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33ca",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 202
  },
  "hsl": {
    "h": 255.497,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46894,
    "c": 0.21601,
    "h": 286.5
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#5A33CA
secondary
#BDCF8A
accent
#E345BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A33CA

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

Preview Lab → · Contrast checker → · Palette generator →

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