#5A33BA#5A33BA

#5A33BA is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.198 H 289.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5A33BA
RGBrgb(90, 51, 186)
HSLhsl(257, 57%, 46%)
HSVhsv(257, 73%, 73%)
CMYKcmyk(51.6%, 72.6%, 0%, 27.1%)
CIE-LABlab(34.16, 49.48, -64.94)
CIE-LCHlch(34.16, 81.64, 307.30°)
OKLaboklab(45.43% 0.0653 -0.1865)
OKLCHoklch(45.43% 0.198 289.3)
XYZxyz(14.2606, 8.0858, 47.2542)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33BA #93BA33
analogous
#3350BA #5A33BA #9E33BA
triadic
#5A33BA #BA5A33 #33BA5A
tetradic
#5A33BA #BA3350 #93BA33 #33BA9E
square
#5A33BA #BA3350 #93BA33 #33BA9E
split-complementary
#5A33BA #BA9E33 #50BA33
monochromatic
#2C195A #43268A #5A33BA #7C59D1 #A289DF

Accessibility & contrast

On white

8.02
#5A33BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A33BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33BA
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33BA#FFFFFF#000000##FFFFFF
##5A33BA1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#375773
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a33ba;
/* rgb */ color: rgb(90, 51, 186);
/* oklch */ color: oklch(45.4% 0.198 289.3);
Tailwind
colors: {
  custom: {
    50: '#926ed0',
    500: '#5a33ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a33ba;
$custom-light: #926ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33ba",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 186
  },
  "hsl": {
    "h": 257.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45435,
    "c": 0.19764,
    "h": 289.3
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#5A33BA
secondary
#B4C980
accent
#E048B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A33BA

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

Preview Lab → · Contrast checker → · Palette generator →

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