#5731AF#5731AF

#5731AF is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.187 H 290.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5731AF
RGBrgb(87, 49, 175)
HSLhsl(258, 56%, 44%)
HSVhsv(258, 72%, 69%)
CMYKcmyk(50.3%, 72%, 0%, 31.4%)
CIE-LABlab(32.52, 46.92, -61.11)
CIE-LCHlch(32.52, 77.04, 307.51°)
OKLaboklab(43.9% 0.065 -0.1754)
OKLCHoklch(43.9% 0.187 290.3)
XYZxyz(12.7644, 7.3175, 41.2890)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731AF #89AF31
analogous
#314AAF #5731AF #9631AF
triadic
#5731AF #AF5731 #31AF57
tetradic
#5731AF #AF314A #89AF31 #31AF96
square
#5731AF #AF314A #89AF31 #31AF96
split-complementary
#5731AF #AF9631 #4AAF31
monochromatic
#27164F #3F247F #5731AF #764FCE #9B7FDB

Accessibility & contrast

On white

8.52
#5731AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5731AF
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731AF#FFFFFF#000000##FFFFFF
##5731AF1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#39526D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5731af;
/* rgb */ color: rgb(87, 49, 175);
/* oklch */ color: oklch(43.9% 0.187 290.3);
Tailwind
colors: {
  custom: {
    50: '#8f6dc8',
    500: '#5731af',
    950: '#000000',
  },
}
SCSS
$custom: #5731af;
$custom-light: #8f6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5731af",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 258.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.18706,
    "h": 290.3
  },
  "luminance": 0.07318
}

Semantic roles & 50–950 ramp

primary
#5731AF
secondary
#ADC478
accent
#E048B2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5731AF

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

Preview Lab → · Contrast checker → · Palette generator →

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