#5A33BB#5A33BB

#5A33BB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.199 H 289.1°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5A33BB
RGBrgb(90, 51, 187)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 73%, 73%)
CMYKcmyk(51.9%, 72.7%, 0%, 26.7%)
CIE-LABlab(34.25, 49.76, -65.38)
CIE-LCHlch(34.25, 82.16, 307.27°)
OKLaboklab(45.52% 0.0651 -0.1878)
OKLCHoklch(45.52% 0.199 289.1)
XYZxyz(14.3673, 8.1285, 47.8160)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33BB #94BB33
analogous
#3350BB #5A33BB #9E33BB
triadic
#5A33BB #BB5A33 #33BB5A
tetradic
#5A33BB #BB3350 #94BB33 #33BB9E
square
#5A33BB #BB3350 #94BB33 #33BB9E
split-complementary
#5A33BB #BB9E33 #50BB33
monochromatic
#2C195B #43268B #5A33BB #7C59D2 #A289DF

Accessibility & contrast

On white

8.00
#5A33BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5A33BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33BB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33BB#FFFFFF#000000##FFFFFF
##5A33BB1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#365774
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a33bb;
/* rgb */ color: rgb(90, 51, 187);
/* oklch */ color: oklch(45.5% 0.199 289.1);
Tailwind
colors: {
  custom: {
    50: '#926ed1',
    500: '#5a33bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a33bb;
$custom-light: #926ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33bb",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 187
  },
  "hsl": {
    "h": 257.206,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45524,
    "c": 0.1988,
    "h": 289.1
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#5A33BB
secondary
#B4C981
accent
#E047B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A33BB

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

Preview Lab → · Contrast checker → · Palette generator →

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