#5B33A5#5B33A5

#5B33A5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.173 H 294.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5B33A5
RGBrgb(91, 51, 165)
HSLhsl(261, 53%, 42%)
HSVhsv(261, 69%, 65%)
CMYKcmyk(44.8%, 69.1%, 0%, 35.3%)
CIE-LABlab(32.50, 43.78, -55.13)
CIE-LCHlch(32.50, 70.40, 308.45°)
OKLaboklab(43.73% 0.0708 -0.1577)
OKLCHoklch(43.73% 0.173 294.2)
XYZxyz(12.2879, 7.3081, 36.3532)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33A5 #7DA533
analogous
#3344A5 #5B33A5 #9433A5
triadic
#5B33A5 #A55B33 #33A55B
tetradic
#5B33A5 #A53344 #7DA533 #33A594
square
#5B33A5 #A53344 #7DA533 #33A594
split-complementary
#5B33A5 #A59433 #44A533
monochromatic
#271648 #412576 #5B33A5 #784DC8 #9C7CD6

Accessibility & contrast

On white

8.53
#5B33A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B33A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33A5
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33A5#FFFFFF#000000##FFFFFF
##5B33A51.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#464F68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b33a5;
/* rgb */ color: rgb(91, 51, 165);
/* oklch */ color: oklch(43.7% 0.173 294.2);
Tailwind
colors: {
  custom: {
    50: '#906ec1',
    500: '#5b33a5',
    950: '#000000',
  },
}
SCSS
$custom: #5b33a5;
$custom-light: #906ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33a5",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 261.053,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43728,
    "c": 0.17288,
    "h": 294.2
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

primary
#5B33A5
secondary
#A5BF75
accent
#DC4CA9
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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