#5D33AB#5D33AB

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

Color values

HEX#5D33AB
RGBrgb(93, 51, 171)
HSLhsl(261, 54%, 44%)
HSVhsv(261, 70%, 67%)
CMYKcmyk(45.6%, 70.2%, 0%, 32.9%)
CIE-LABlab(33.21, 45.81, -57.56)
CIE-LCHlch(33.21, 73.57, 308.51°)
OKLaboklab(44.44% 0.0727 -0.1648)
OKLCHoklch(44.44% 0.18 293.8)
XYZxyz(13.0467, 7.6347, 39.3064)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D33AB #81AB33
analogous
#3345AB #5D33AB #9933AB
triadic
#5D33AB #AB5D33 #33AB5D
tetradic
#5D33AB #AB3345 #81AB33 #33AB99
square
#5D33AB #AB3345 #81AB33 #33AB99
split-complementary
#5D33AB #AB9933 #45AB33
monochromatic
#2A174D #43257C #5D33AB #7B50CB #9F7FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D33AB#FFFFFF#000000##FFFFFF
##5D33AB1.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)
#004FAF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#46516B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d33ab;
/* rgb */ color: rgb(93, 51, 171);
/* oklch */ color: oklch(44.4% 0.180 293.8);
Tailwind
colors: {
  custom: {
    50: '#926ec5',
    500: '#5d33ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d33ab;
$custom-light: #926ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d33ab",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 261,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4444,
    "c": 0.18011,
    "h": 293.8
  },
  "luminance": 0.07635
}

Semantic roles & 50–950 ramp

primary
#5D33AB
secondary
#A8C278
accent
#DD4AAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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