#5334B2#5334B2

#5334B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.187 H 287.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5334B2
RGBrgb(83, 52, 178)
HSLhsl(255, 55%, 45%)
HSVhsv(255, 71%, 70%)
CMYKcmyk(53.4%, 70.8%, 0%, 30.2%)
CIE-LABlab(32.94, 45.54, -62.23)
CIE-LCHlch(32.94, 77.11, 306.20°)
OKLaboklab(44.18% 0.0559 -0.1788)
OKLCHoklch(44.18% 0.187 287.4)
XYZxyz(12.8288, 7.5087, 42.8842)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5334B2 #93B234
analogous
#3454B2 #5334B2 #9234B2
triadic
#5334B2 #B25334 #34B253
tetradic
#5334B2 #B23454 #93B234 #34B292
square
#5334B2 #B23454 #93B234 #34B292
split-complementary
#5334B2 #B29234 #54B234
monochromatic
#271853 #3D2683 #5334B2 #7356CE #9A85DB

Accessibility & contrast

On white

8.39
#5334B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5334B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5334B2
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5334B2#FFFFFF#000000##FFFFFF
##5334B21.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#2D556F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5334b2;
/* rgb */ color: rgb(83, 52, 178);
/* oklch */ color: oklch(44.2% 0.187 287.4);
Tailwind
colors: {
  custom: {
    50: '#8d6eca',
    500: '#5334b2',
    950: '#000000',
  },
}
SCSS
$custom: #5334b2;
$custom-light: #8d6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5334b2",
  "rgb": {
    "r": 83,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 254.762,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44182,
    "c": 0.18737,
    "h": 287.4
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#5334B2
secondary
#B3C57D
accent
#DE4ABA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5334B2

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

Preview Lab → · Contrast checker → · Palette generator →

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