#5732B4#5732B4

#5732B4 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.192 H 289.2°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5732B4
RGBrgb(87, 50, 180)
HSLhsl(257, 57%, 45%)
HSVhsv(257, 72%, 71%)
CMYKcmyk(51.7%, 72.2%, 0%, 29.4%)
CIE-LABlab(33.14, 47.82, -63.07)
CIE-LCHlch(33.14, 79.15, 307.17°)
OKLaboklab(44.48% 0.0631 -0.1812)
OKLCHoklch(44.48% 0.192 289.2)
XYZxyz(13.3069, 7.6021, 43.9374)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732B4 #8FB432
analogous
#324EB4 #5732B4 #9832B4
triadic
#5732B4 #B45732 #32B457
tetradic
#5732B4 #B4324E #8FB432 #32B498
square
#5732B4 #B4324E #8FB432 #32B498
split-complementary
#5732B4 #B49832 #4EB432
monochromatic
#291754 #402584 #5732B4 #7754CF #9D84DD

Accessibility & contrast

On white

8.33
#5732B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5732B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732B4
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732B4#FFFFFF#000000##FFFFFF
##5732B41.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#355470
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5732b4;
/* rgb */ color: rgb(87, 50, 180);
/* oklch */ color: oklch(44.5% 0.192 289.2);
Tailwind
colors: {
  custom: {
    50: '#906dcc',
    500: '#5732b4',
    950: '#000000',
  },
}
SCSS
$custom: #5732b4;
$custom-light: #906dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5732b4",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 180
  },
  "hsl": {
    "h": 257.077,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44476,
    "c": 0.19182,
    "h": 289.2
  },
  "luminance": 0.07603
}

Semantic roles & 50–950 ramp

primary
#5732B4
secondary
#B1C67C
accent
#E048B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5732B4

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

Preview Lab → · Contrast checker → · Palette generator →

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