#5732AF#5732AF

#5732AF is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.186 H 290.2°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5732AF
RGBrgb(87, 50, 175)
HSLhsl(258, 56%, 44%)
HSVhsv(258, 71%, 69%)
CMYKcmyk(50.3%, 71.4%, 0%, 31.4%)
CIE-LABlab(32.71, 46.40, -60.80)
CIE-LCHlch(32.71, 76.48, 307.34°)
OKLaboklab(44.03% 0.0641 -0.1745)
OKLCHoklch(44.03% 0.186 290.2)
XYZxyz(12.8067, 7.4021, 41.3031)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732AF #8AAF32
analogous
#324CAF #5732AF #9632AF
triadic
#5732AF #AF5732 #32AF57
tetradic
#5732AF #AF324C #8AAF32 #32AF96
square
#5732AF #AF324C #8AAF32 #32AF96
split-complementary
#5732AF #AF9632 #4CAF32
monochromatic
#281750 #3F247F #5732AF #7651CD #9B81DB

Accessibility & contrast

On white

8.47
#5732AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5732AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732AF
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732AF#FFFFFF#000000##FFFFFF
##5732AF1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5732af;
/* rgb */ color: rgb(87, 50, 175);
/* oklch */ color: oklch(44.0% 0.186 290.2);
Tailwind
colors: {
  custom: {
    50: '#8f6dc8',
    500: '#5732af',
    950: '#000000',
  },
}
SCSS
$custom: #5732af;
$custom-light: #8f6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5732af",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 175
  },
  "hsl": {
    "h": 257.76,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44033,
    "c": 0.18592,
    "h": 290.2
  },
  "luminance": 0.07403
}

Semantic roles & 50–950 ramp

primary
#5732AF
secondary
#AEC479
accent
#DF49B2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5732AF

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

Preview Lab → · Contrast checker → · Palette generator →

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