#5331A2#5331A2

#5331A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.172 H 291.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5331A2
RGBrgb(83, 49, 162)
HSLhsl(258, 54%, 41%)
HSVhsv(258, 70%, 64%)
CMYKcmyk(48.8%, 69.8%, 0%, 36.5%)
CIE-LABlab(30.98, 42.51, -55.83)
CIE-LCHlch(30.98, 70.17, 307.29°)
OKLaboklab(42.36% 0.0617 -0.16)
OKLCHoklch(42.36% 0.172 291.1)
XYZxyz(11.1853, 6.6438, 34.8685)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331A2 #80A231
analogous
#3148A2 #5331A2 #8C31A2
triadic
#5331A2 #A25331 #31A253
tetradic
#5331A2 #A23148 #80A231 #31A28C
square
#5331A2 #A23148 #80A231 #31A28C
split-complementary
#5331A2 #A28C31 #48A231
monochromatic
#231544 #3B2373 #5331A2 #6F48C8 #9477D6

Accessibility & contrast

On white

9.02
#5331A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5331A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331A2
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331A2#FFFFFF#000000##FFFFFF
##5331A21.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#3A4D65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5331a2;
/* rgb */ color: rgb(83, 49, 162);
/* oklch */ color: oklch(42.4% 0.172 291.1);
Tailwind
colors: {
  custom: {
    50: '#8b6cbe',
    500: '#5331a2',
    950: '#000000',
  },
}
SCSS
$custom: #5331a2;
$custom-light: #8b6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5331a2",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 258.053,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42363,
    "c": 0.17151,
    "h": 291.1
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

primary
#5331A2
secondary
#A7BE71
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5331A2

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

Preview Lab → · Contrast checker → · Palette generator →

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