#5A33BF#5A33BF

#5A33BF is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.203 H 288.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5A33BF
RGBrgb(90, 51, 191)
HSLhsl(257, 58%, 47%)
HSVhsv(257, 73%, 75%)
CMYKcmyk(52.9%, 73.3%, 0%, 25.1%)
CIE-LABlab(34.60, 50.88, -67.16)
CIE-LCHlch(34.60, 84.26, 307.15°)
OKLaboklab(45.88% 0.0642 -0.193)
OKLCHoklch(45.88% 0.203 288.4)
XYZxyz(14.8015, 8.3022, 50.1027)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33BF #98BF33
analogous
#3352BF #5A33BF #A033BF
triadic
#5A33BF #BF5A33 #33BF5A
tetradic
#5A33BF #BF3352 #98BF33 #33BFA0
square
#5A33BF #BF3352 #98BF33 #33BFA0
split-complementary
#5A33BF #BFA033 #52BF33
monochromatic
#2C195E #43268F #5A33BF #7D5CD3 #A48CE0

Accessibility & contrast

On white

7.89
#5A33BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A33BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33BF
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33BF#FFFFFF#000000##FFFFFF
##5A33BF1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#335976
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a33bf;
/* rgb */ color: rgb(90, 51, 191);
/* oklch */ color: oklch(45.9% 0.203 288.4);
Tailwind
colors: {
  custom: {
    50: '#936fd3',
    500: '#5a33bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a33bf;
$custom-light: #936fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33bf",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 191
  },
  "hsl": {
    "h": 256.714,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45884,
    "c": 0.20343,
    "h": 288.4
  },
  "luminance": 0.08303
}

Semantic roles & 50–950 ramp

primary
#5A33BF
secondary
#B7CB83
accent
#E147B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A33BF

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

Preview Lab → · Contrast checker → · Palette generator →

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