#5A33B8#5A33B8

#5A33B8 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.195 H 289.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5A33B8
RGBrgb(90, 51, 184)
HSLhsl(258, 57%, 46%)
HSVhsv(258, 72%, 72%)
CMYKcmyk(51.1%, 72.3%, 0%, 27.8%)
CIE-LABlab(33.99, 48.91, -64.04)
CIE-LCHlch(33.99, 80.59, 307.37°)
OKLaboklab(45.26% 0.0657 -0.1839)
OKLCHoklch(45.26% 0.195 289.7)
XYZxyz(14.0495, 8.0014, 46.1422)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33B8 #91B833
analogous
#334EB8 #5A33B8 #9C33B8
triadic
#5A33B8 #B85A33 #33B85A
tetradic
#5A33B8 #B8334E #91B833 #33B89C
square
#5A33B8 #B8334E #91B833 #33B89C
split-complementary
#5A33B8 #B89C33 #4EB833
monochromatic
#2B1858 #432688 #5A33B8 #7B58D1 #A188DE

Accessibility & contrast

On white

8.08
#5A33B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A33B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33B8
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33B8#FFFFFF#000000##FFFFFF
##5A33B81.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#385672
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a33b8;
/* rgb */ color: rgb(90, 51, 184);
/* oklch */ color: oklch(45.3% 0.195 289.7);
Tailwind
colors: {
  custom: {
    50: '#926ece',
    500: '#5a33b8',
    950: '#000000',
  },
}
SCSS
$custom: #5a33b8;
$custom-light: #926ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33b8",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 184
  },
  "hsl": {
    "h": 257.594,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45257,
    "c": 0.19531,
    "h": 289.7
  },
  "luminance": 0.08002
}

Semantic roles & 50–950 ramp

primary
#5A33B8
secondary
#B2C87F
accent
#E048B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A33B8

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

Preview Lab → · Contrast checker → · Palette generator →

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