#5334A2#5334A2

#5334A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.168 H 290.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5334A2
RGBrgb(83, 52, 162)
HSLhsl(257, 51%, 42%)
HSVhsv(257, 68%, 64%)
CMYKcmyk(48.8%, 67.9%, 0%, 36.5%)
CIE-LABlab(31.59, 40.86, -54.84)
CIE-LCHlch(31.59, 68.39, 306.68°)
OKLaboklab(42.8% 0.0587 -0.1572)
OKLCHoklch(42.8% 0.168 290.5)
XYZxyz(11.3150, 6.9032, 34.9117)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5334A2 #83A234
analogous
#344CA2 #5334A2 #8A34A2
triadic
#5334A2 #A25334 #34A253
tetradic
#5334A2 #A2344C #83A234 #34A28A
square
#5334A2 #A2344C #83A234 #34A28A
split-complementary
#5334A2 #A28A34 #4CA234
monochromatic
#241645 #3B2574 #5334A2 #6F4DC6 #957CD5

Accessibility & contrast

On white

8.82
#5334A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5334A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5334A2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5334A2#FFFFFF#000000##FFFFFF
##5334A21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#394F66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5334a2;
/* rgb */ color: rgb(83, 52, 162);
/* oklch */ color: oklch(42.8% 0.168 290.5);
Tailwind
colors: {
  custom: {
    50: '#8a6ebe',
    500: '#5334a2',
    950: '#000000',
  },
}
SCSS
$custom: #5334a2;
$custom-light: #8a6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5334a2",
  "rgb": {
    "r": 83,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 256.909,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42795,
    "c": 0.16775,
    "h": 290.5
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#5334A2
secondary
#A9BE74
accent
#DB4DB3
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5334A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5334A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva