#5732AB#5732AB

#5732AB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.181 H 291.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5732AB
RGBrgb(87, 50, 171)
HSLhsl(258, 55%, 43%)
HSVhsv(258, 71%, 67%)
CMYKcmyk(49.1%, 70.8%, 0%, 32.9%)
CIE-LABlab(32.36, 45.26, -58.97)
CIE-LCHlch(32.36, 74.34, 307.51°)
OKLaboklab(43.68% 0.0649 -0.1691)
OKLCHoklch(43.68% 0.181 291)
XYZxyz(12.4197, 7.2472, 39.2646)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732AB #86AB32
analogous
#3249AB #5732AB #9332AB
triadic
#5732AB #AB5732 #32AB57
tetradic
#5732AB #AB3249 #86AB32 #32AB93
square
#5732AB #AB3249 #86AB32 #32AB93
split-complementary
#5732AB #AB9332 #49AB32
monochromatic
#27164C #3F247C #5732AB #754FCB #9A7ED9

Accessibility & contrast

On white

8.57
#5732AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5732AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732AB
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732AB#FFFFFF#000000##FFFFFF
##5732AB1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5732ab;
/* rgb */ color: rgb(87, 50, 171);
/* oklch */ color: oklch(43.7% 0.181 291.0);
Tailwind
colors: {
  custom: {
    50: '#8e6dc5',
    500: '#5732ab',
    950: '#000000',
  },
}
SCSS
$custom: #5732ab;
$custom-light: #8e6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5732ab",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 258.347,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43684,
    "c": 0.18117,
    "h": 291
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#5732AB
secondary
#ABC277
accent
#DE4AB1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5732AB

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

Preview Lab → · Contrast checker → · Palette generator →

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