#5D33A3#5D33A3

#5D33A3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.171 H 295.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5D33A3
RGBrgb(93, 51, 163)
HSLhsl(263, 52%, 42%)
HSVhsv(263, 69%, 64%)
CMYKcmyk(42.9%, 68.7%, 0%, 36.1%)
CIE-LABlab(32.57, 43.62, -53.80)
CIE-LCHlch(32.57, 69.26, 309.03°)
OKLaboklab(43.78% 0.074 -0.1537)
OKLCHoklch(43.78% 0.171 295.7)
XYZxyz(12.3071, 7.3389, 35.4113)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D33A3 #79A333
analogous
#3341A3 #5D33A3 #9533A3
triadic
#5D33A3 #A35D33 #33A35D
tetradic
#5D33A3 #A33341 #79A333 #33A395
square
#5D33A3 #A33341 #79A333 #33A395
split-complementary
#5D33A3 #A39533 #41A333
monochromatic
#281646 #422474 #5D33A3 #7A4CC7 #9D7BD6

Accessibility & contrast

On white

8.51
#5D33A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5D33A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D33A3
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D33A3#FFFFFF#000000##FFFFFF
##5D33A31.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#4A4E67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d33a3;
/* rgb */ color: rgb(93, 51, 163);
/* oklch */ color: oklch(43.8% 0.171 295.7);
Tailwind
colors: {
  custom: {
    50: '#916ebf',
    500: '#5d33a3',
    950: '#000000',
  },
}
SCSS
$custom: #5d33a3;
$custom-light: #916ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d33a3",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 163
  },
  "hsl": {
    "h": 262.5,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.17064,
    "h": 295.7
  },
  "luminance": 0.07339
}

Semantic roles & 50–950 ramp

primary
#5D33A3
secondary
#A2BE73
accent
#DC4CA6
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D33A3

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

Preview Lab → · Contrast checker → · Palette generator →

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