#5331A6#5331A6

#5331A6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.176 H 290.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5331A6
RGBrgb(83, 49, 166)
HSLhsl(257, 54%, 42%)
HSVhsv(257, 70%, 65%)
CMYKcmyk(50%, 70.5%, 0%, 34.9%)
CIE-LABlab(31.32, 43.67, -57.69)
CIE-LCHlch(31.32, 72.35, 307.12°)
OKLaboklab(42.71% 0.061 -0.1655)
OKLCHoklch(42.71% 0.176 290.2)
XYZxyz(11.5466, 6.7883, 36.7709)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331A6 #84A631
analogous
#3149A6 #5331A6 #8E31A6
triadic
#5331A6 #A65331 #31A653
tetradic
#5331A6 #A63149 #84A631 #31A68E
square
#5331A6 #A63149 #84A631 #31A68E
split-complementary
#5331A6 #A68E31 #49A631
monochromatic
#241547 #3B2377 #5331A6 #6F4ACA #957AD8

Accessibility & contrast

On white

8.91
#5331A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5331A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331A6
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331A6#FFFFFF#000000##FFFFFF
##5331A61.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#374F68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5331a6;
/* rgb */ color: rgb(83, 49, 166);
/* oklch */ color: oklch(42.7% 0.176 290.2);
Tailwind
colors: {
  custom: {
    50: '#8b6cc1',
    500: '#5331a6',
    950: '#000000',
  },
}
SCSS
$custom: #5331a6;
$custom-light: #8b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5331a6",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 257.436,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42709,
    "c": 0.17638,
    "h": 290.2
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#5331A6
secondary
#AAC073
accent
#DE4AB3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5331A6

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

Preview Lab → · Contrast checker → · Palette generator →

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