#5431AC#5431AC

#5431AC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.184 H 289.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5431AC
RGBrgb(84, 49, 172)
HSLhsl(257, 56%, 43%)
HSVhsv(257, 72%, 67%)
CMYKcmyk(51.2%, 71.5%, 0%, 32.5%)
CIE-LABlab(31.94, 45.56, -60.27)
CIE-LCHlch(31.94, 75.56, 307.09°)
OKLaboklab(43.34% 0.0612 -0.173)
OKLCHoklch(43.34% 0.184 289.5)
XYZxyz(12.1987, 7.0595, 39.7416)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5431AC #89AC31
analogous
#314BAC #5431AC #9131AC
triadic
#5431AC #AC5431 #31AC54
tetradic
#5431AC #AC314B #89AC31 #31AC91
square
#5431AC #AC314B #89AC31 #31AC91
split-complementary
#5431AC #AC9131 #4BAC31
monochromatic
#25164D #3D237C #5431AC #724ECC #987DDA

Accessibility & contrast

On white

8.71
#5431AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5431AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5431AC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5431AC#FFFFFF#000000##FFFFFF
##5431AC1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#35516B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5431ac;
/* rgb */ color: rgb(84, 49, 172);
/* oklch */ color: oklch(43.3% 0.184 289.5);
Tailwind
colors: {
  custom: {
    50: '#8d6cc6',
    500: '#5431ac',
    950: '#000000',
  },
}
SCSS
$custom: #5431ac;
$custom-light: #8d6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5431ac",
  "rgb": {
    "r": 84,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 257.073,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43336,
    "c": 0.18357,
    "h": 289.5
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#5431AC
secondary
#ADC376
accent
#DF49B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5431AC

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

Preview Lab → · Contrast checker → · Palette generator →

#5431AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva