#5A33BE#5A33BE

#5A33BE is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.202 H 288.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5A33BE
RGBrgb(90, 51, 190)
HSLhsl(257, 58%, 47%)
HSVhsv(257, 73%, 75%)
CMYKcmyk(52.6%, 73.2%, 0%, 25.5%)
CIE-LABlab(34.52, 50.60, -66.72)
CIE-LCHlch(34.52, 83.73, 307.18°)
OKLaboklab(45.79% 0.0644 -0.1918)
OKLCHoklch(45.79% 0.202 288.6)
XYZxyz(14.6918, 8.2583, 49.5251)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33BE #97BE33
analogous
#3351BE #5A33BE #A033BE
triadic
#5A33BE #BE5A33 #33BE5A
tetradic
#5A33BE #BE3351 #97BE33 #33BEA0
square
#5A33BE #BE3351 #97BE33 #33BEA0
split-complementary
#5A33BE #BEA033 #51BE33
monochromatic
#2C195E #43268E #5A33BE #7D5BD3 #A38BE0

Accessibility & contrast

On white

7.92
#5A33BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A33BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33BE
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33BE#FFFFFF#000000##FFFFFF
##5A33BE1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#345976
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a33be;
/* rgb */ color: rgb(90, 51, 190);
/* oklch */ color: oklch(45.8% 0.202 288.6);
Tailwind
colors: {
  custom: {
    50: '#936fd3',
    500: '#5a33be',
    950: '#000000',
  },
}
SCSS
$custom: #5a33be;
$custom-light: #936fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33be",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 190
  },
  "hsl": {
    "h": 256.835,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45794,
    "c": 0.20228,
    "h": 288.6
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A33BE

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

Preview Lab → · Contrast checker → · Palette generator →

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