#5732A2#5732A2

#5732A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.170 H 293.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5732A2
RGBrgb(87, 50, 162)
HSLhsl(260, 53%, 42%)
HSVhsv(260, 69%, 64%)
CMYKcmyk(46.3%, 69.1%, 0%, 36.5%)
CIE-LABlab(31.61, 42.72, -54.78)
CIE-LCHlch(31.61, 69.47, 307.95°)
OKLaboklab(42.92% 0.0665 -0.1568)
OKLCHoklch(42.92% 0.17 293)
XYZxyz(11.5909, 6.9157, 34.8996)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732A2 #7DA232
analogous
#3245A2 #5732A2 #8F32A2
triadic
#5732A2 #A25732 #32A257
tetradic
#5732A2 #A23245 #7DA232 #32A28F
square
#5732A2 #A23245 #7DA232 #32A28F
split-complementary
#5732A2 #A28F32 #45A232
monochromatic
#251544 #3E2473 #5732A2 #734AC7 #9779D6

Accessibility & contrast

On white

8.81
#5732A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5732A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732A2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732A2#FFFFFF#000000##FFFFFF
##5732A21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#414E66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5732a2;
/* rgb */ color: rgb(87, 50, 162);
/* oklch */ color: oklch(42.9% 0.170 293.0);
Tailwind
colors: {
  custom: {
    50: '#8d6dbe',
    500: '#5732a2',
    950: '#000000',
  },
}
SCSS
$custom: #5732a2;
$custom-light: #8d6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5732a2",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 259.821,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42917,
    "c": 0.17034,
    "h": 293
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#5732A2
secondary
#A5BE72
accent
#DC4CAC
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5732A2

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

Preview Lab → · Contrast checker → · Palette generator →

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