#5732B5#5732B5

#5732B5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.193 H 289.0°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5732B5
RGBrgb(87, 50, 181)
HSLhsl(257, 57%, 45%)
HSVhsv(257, 72%, 71%)
CMYKcmyk(51.9%, 72.4%, 0%, 29%)
CIE-LABlab(33.23, 48.10, -63.52)
CIE-LCHlch(33.23, 79.68, 307.14°)
OKLaboklab(44.57% 0.0629 -0.1825)
OKLCHoklch(44.57% 0.193 289)
XYZxyz(13.4091, 7.6430, 44.4758)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732B5 #90B532
analogous
#324EB5 #5732B5 #9932B5
triadic
#5732B5 #B55732 #32B557
tetradic
#5732B5 #B5324E #90B532 #32B599
square
#5732B5 #B5324E #90B532 #32B599
split-complementary
#5732B5 #B59932 #4EB532
monochromatic
#291855 #402585 #5732B5 #7754D0 #9D84DD

Accessibility & contrast

On white

8.30
#5732B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5732B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732B5
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732B5#FFFFFF#000000##FFFFFF
##5732B51.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5732b5;
/* rgb */ color: rgb(87, 50, 181);
/* oklch */ color: oklch(44.6% 0.193 289.0);
Tailwind
colors: {
  custom: {
    50: '#906dcc',
    500: '#5732b5',
    950: '#000000',
  },
}
SCSS
$custom: #5732b5;
$custom-light: #906dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5732b5",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 256.947,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44565,
    "c": 0.193,
    "h": 289
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#5732B5
secondary
#B2C77C
accent
#E048B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5732B5

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

Preview Lab → · Contrast checker → · Palette generator →

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