#5731AC#5731AC

#5731AC is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.184 H 291.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5731AC
RGBrgb(87, 49, 172)
HSLhsl(259, 56%, 43%)
HSVhsv(259, 72%, 67%)
CMYKcmyk(49.4%, 71.5%, 0%, 32.5%)
CIE-LABlab(32.26, 46.07, -59.74)
CIE-LCHlch(32.26, 75.44, 307.64°)
OKLaboklab(43.64% 0.0656 -0.1714)
OKLCHoklch(43.64% 0.184 291)
XYZxyz(12.4731, 7.2009, 39.7544)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731AC #86AC31
analogous
#3148AC #5731AC #9431AC
triadic
#5731AC #AC5731 #31AC57
tetradic
#5731AC #AC3148 #86AC31 #31AC94
square
#5731AC #AC3148 #86AC31 #31AC94
split-complementary
#5731AC #AC9431 #48AC31
monochromatic
#27164D #3F237C #5731AC #754ECC #9A7DDA

Accessibility & contrast

On white

8.61
#5731AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5731AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731AC
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731AC#FFFFFF#000000##FFFFFF
##5731AC1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#3B516B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5731ac;
/* rgb */ color: rgb(87, 49, 172);
/* oklch */ color: oklch(43.6% 0.184 291.0);
Tailwind
colors: {
  custom: {
    50: '#8e6cc6',
    500: '#5731ac',
    950: '#000000',
  },
}
SCSS
$custom: #5731ac;
$custom-light: #8e6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5731ac",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 258.537,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43637,
    "c": 0.18352,
    "h": 291
  },
  "luminance": 0.07201
}

Semantic roles & 50–950 ramp

primary
#5731AC
secondary
#ABC376
accent
#DF49B1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5731AC

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

Preview Lab → · Contrast checker → · Palette generator →

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