#5331B4#5331B4

#5331B4 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.193 H 287.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5331B4
RGBrgb(83, 49, 180)
HSLhsl(256, 57%, 45%)
HSVhsv(256, 73%, 71%)
CMYKcmyk(53.9%, 72.8%, 0%, 29.4%)
CIE-LABlab(32.55, 47.71, -64.06)
CIE-LCHlch(32.55, 79.87, 306.68°)
OKLaboklab(43.96% 0.0581 -0.1842)
OKLCHoklch(43.96% 0.193 287.5)
XYZxyz(12.9014, 7.3303, 43.9062)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B4 #92B431
analogous
#3150B4 #5331B4 #9531B4
triadic
#5331B4 #B45331 #31B453
tetradic
#5331B4 #B43150 #92B431 #31B495
square
#5331B4 #B43150 #92B431 #31B495
split-complementary
#5331B4 #B49531 #50B431
monochromatic
#271754 #3D2484 #5331B4 #7352D0 #9A82DD

Accessibility & contrast

On white

8.52
#5331B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5331B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B4
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B4#FFFFFF#000000##FFFFFF
##5331B41.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#2B546F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5331b4;
/* rgb */ color: rgb(83, 49, 180);
/* oklch */ color: oklch(44.0% 0.193 287.5);
Tailwind
colors: {
  custom: {
    50: '#8d6ccc',
    500: '#5331b4',
    950: '#000000',
  },
}
SCSS
$custom: #5331b4;
$custom-light: #8d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b4",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 255.573,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.19311,
    "h": 287.5
  },
  "luminance": 0.07331
}

Semantic roles & 50–950 ramp

primary
#5331B4
secondary
#B3C67B
accent
#E047B9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5331B4

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

Preview Lab → · Contrast checker → · Palette generator →

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