#5332B2#5332B2

#5332B2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.190 H 287.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5332B2
RGBrgb(83, 50, 178)
HSLhsl(255, 56%, 45%)
HSVhsv(255, 72%, 70%)
CMYKcmyk(53.4%, 71.9%, 0%, 30.2%)
CIE-LABlab(32.56, 46.61, -62.85)
CIE-LCHlch(32.56, 78.25, 306.56°)
OKLaboklab(43.91% 0.0577 -0.1807)
OKLCHoklch(43.91% 0.19 287.7)
XYZxyz(12.7414, 7.3339, 42.8551)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5332B2 #91B232
analogous
#3251B2 #5332B2 #9332B2
triadic
#5332B2 #B25332 #32B253
tetradic
#5332B2 #B23251 #91B232 #32B293
square
#5332B2 #B23251 #91B232 #32B293
split-complementary
#5332B2 #B29332 #51B232
monochromatic
#261752 #3D2582 #5332B2 #7353CF #9A82DC

Accessibility & contrast

On white

8.51
#5332B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5332B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5332B2
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5332B2#FFFFFF#000000##FFFFFF
##5332B21.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)
#004FB6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#2D546F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5332b2;
/* rgb */ color: rgb(83, 50, 178);
/* oklch */ color: oklch(43.9% 0.190 287.7);
Tailwind
colors: {
  custom: {
    50: '#8d6dca',
    500: '#5332b2',
    950: '#000000',
  },
}
SCSS
$custom: #5332b2;
$custom-light: #8d6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5332b2",
  "rgb": {
    "r": 83,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 255.469,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4391,
    "c": 0.18964,
    "h": 287.7
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

primary
#5332B2
secondary
#B2C57B
accent
#DF48B8
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5332B2

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

Preview Lab → · Contrast checker → · Palette generator →

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