#5B33A3#5B33A3

#5B33A3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.170 H 294.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5B33A3
RGBrgb(91, 51, 163)
HSLhsl(261, 52%, 42%)
HSVhsv(261, 69%, 64%)
CMYKcmyk(44.2%, 68.7%, 0%, 36.1%)
CIE-LABlab(32.34, 43.23, -54.19)
CIE-LCHlch(32.34, 69.31, 308.58°)
OKLaboklab(43.56% 0.0711 -0.1549)
OKLCHoklch(43.56% 0.17 294.7)
XYZxyz(12.1073, 7.2358, 35.4020)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33A3 #7BA333
analogous
#3343A3 #5B33A3 #9333A3
triadic
#5B33A3 #A35B33 #33A35B
tetradic
#5B33A3 #A33343 #7BA333 #33A393
square
#5B33A3 #A33343 #7BA333 #33A393
split-complementary
#5B33A3 #A39333 #43A333
monochromatic
#271646 #412474 #5B33A3 #784CC7 #9B7BD6

Accessibility & contrast

On white

8.58
#5B33A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B33A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33A3
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33A3#FFFFFF#000000##FFFFFF
##5B33A31.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#474E67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b33a3;
/* rgb */ color: rgb(91, 51, 163);
/* oklch */ color: oklch(43.6% 0.170 294.7);
Tailwind
colors: {
  custom: {
    50: '#906ebf',
    500: '#5b33a3',
    950: '#000000',
  },
}
SCSS
$custom: #5b33a3;
$custom-light: #906ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33a3",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 163
  },
  "hsl": {
    "h": 261.429,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43563,
    "c": 0.17049,
    "h": 294.7
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#5B33A3
secondary
#A4BE73
accent
#DC4CA8
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B33A3

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

Preview Lab → · Contrast checker → · Palette generator →

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