#5731AE#5731AE

#5731AE is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.186 H 290.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5731AE
RGBrgb(87, 49, 174)
HSLhsl(258, 56%, 44%)
HSVhsv(258, 72%, 68%)
CMYKcmyk(50%, 71.8%, 0%, 31.8%)
CIE-LABlab(32.43, 46.63, -60.65)
CIE-LCHlch(32.43, 76.51, 307.56°)
OKLaboklab(43.81% 0.0652 -0.1741)
OKLCHoklch(43.81% 0.186 290.5)
XYZxyz(12.6666, 7.2783, 40.7736)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731AE #88AE31
analogous
#3149AE #5731AE #9531AE
triadic
#5731AE #AE5731 #31AE57
tetradic
#5731AE #AE3149 #88AE31 #31AE95
square
#5731AE #AE3149 #88AE31 #31AE95
split-complementary
#5731AE #AE9531 #49AE31
monochromatic
#27164E #3F247E #5731AE #754FCD #9B7FDB

Accessibility & contrast

On white

8.55
#5731AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5731AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731AE
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731AE#FFFFFF#000000##FFFFFF
##5731AE1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#3A526C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5731ae;
/* rgb */ color: rgb(87, 49, 174);
/* oklch */ color: oklch(43.8% 0.186 290.5);
Tailwind
colors: {
  custom: {
    50: '#8f6cc7',
    500: '#5731ae',
    950: '#000000',
  },
}
SCSS
$custom: #5731ae;
$custom-light: #8f6cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5731ae",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 258.24,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43813,
    "c": 0.18589,
    "h": 290.5
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#5731AE
secondary
#ACC477
accent
#DF48B1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5731AE

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

Preview Lab → · Contrast checker → · Palette generator →

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