#5331B6#5331B6

#5331B6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.195 H 287.1°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5331B6
RGBrgb(83, 49, 182)
HSLhsl(255, 58%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(54.4%, 73.1%, 0%, 28.6%)
CIE-LABlab(32.73, 48.28, -64.95)
CIE-LCHlch(32.73, 80.93, 306.63°)
OKLaboklab(44.14% 0.0576 -0.1868)
OKLCHoklch(44.14% 0.195 287.1)
XYZxyz(13.1066, 7.4123, 44.9870)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B6 #94B631
analogous
#3152B6 #5331B6 #9531B6
triadic
#5331B6 #B65331 #31B653
tetradic
#5331B6 #B63152 #94B631 #31B695
square
#5331B6 #B63152 #94B631 #31B695
split-complementary
#5331B6 #B69531 #52B631
monochromatic
#271756 #3D2486 #5331B6 #7353D1 #9B84DE

Accessibility & contrast

On white

8.46
#5331B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5331B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B6
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B6#FFFFFF#000000##FFFFFF
##5331B61.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#295571
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5331b6;
/* rgb */ color: rgb(83, 49, 182);
/* oklch */ color: oklch(44.1% 0.195 287.1);
Tailwind
colors: {
  custom: {
    50: '#8e6dcd',
    500: '#5331b6',
    950: '#000000',
  },
}
SCSS
$custom: #5331b6;
$custom-light: #8e6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b6",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 255.338,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44142,
    "c": 0.19547,
    "h": 287.1
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#5331B6
secondary
#B4C77C
accent
#E147B9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5331B6

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

Preview Lab → · Contrast checker → · Palette generator →

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