#5A33AF#5A33AF

#5A33AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.185 H 291.5°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5A33AF
RGBrgb(90, 51, 175)
HSLhsl(259, 55%, 44%)
HSVhsv(259, 71%, 69%)
CMYKcmyk(48.6%, 70.9%, 0%, 31.4%)
CIE-LABlab(33.21, 46.39, -59.96)
CIE-LCHlch(33.21, 75.81, 307.73°)
OKLaboklab(44.47% 0.0676 -0.1719)
OKLCHoklch(44.47% 0.185 291.5)
XYZxyz(13.1360, 7.6360, 41.3309)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33AF #88AF33
analogous
#334AAF #5A33AF #9833AF
triadic
#5A33AF #AF5A33 #33AF5A
tetradic
#5A33AF #AF334A #88AF33 #33AF98
square
#5A33AF #AF334A #88AF33 #33AF98
split-complementary
#5A33AF #AF9833 #4AAF33
monochromatic
#291750 #422580 #5A33AF #7952CD #9E82DB

Accessibility & contrast

On white

8.31
#5A33AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A33AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33AF
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33AF#FFFFFF#000000##FFFFFF
##5A33AF1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#3F536D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a33af;
/* rgb */ color: rgb(90, 51, 175);
/* oklch */ color: oklch(44.5% 0.185 291.5);
Tailwind
colors: {
  custom: {
    50: '#916ec8',
    500: '#5a33af',
    950: '#000000',
  },
}
SCSS
$custom: #5a33af;
$custom-light: #916ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33af",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 175
  },
  "hsl": {
    "h": 258.871,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44469,
    "c": 0.18474,
    "h": 291.5
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#5A33AF
secondary
#ADC47A
accent
#DE4AAF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A33AF

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

Preview Lab → · Contrast checker → · Palette generator →

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