#5732C6#5732C6

#5732C6 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.213 H 286.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5732C6
RGBrgb(87, 50, 198)
HSLhsl(255, 60%, 49%)
HSVhsv(255, 75%, 78%)
CMYKcmyk(56.1%, 74.7%, 0%, 22.4%)
CIE-LABlab(34.77, 52.93, -71.00)
CIE-LCHlch(34.77, 88.56, 306.70°)
OKLaboklab(46.12% 0.0588 -0.2044)
OKLCHoklch(46.12% 0.213 286.1)
XYZxyz(15.2611, 8.3838, 54.2292)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732C6 #A1C632
analogous
#3257C6 #5732C6 #A132C6
triadic
#5732C6 #C65732 #32C657
tetradic
#5732C6 #C63257 #A1C632 #32C6A1
square
#5732C6 #C63257 #A1C632 #32C6A1
split-complementary
#5732C6 #C6A132 #57C632
monochromatic
#2C1964 #422695 #5732C6 #7D5FD7 #A490E3

Accessibility & contrast

On white

7.84
#5732C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5732C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732C6
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732C6#FFFFFF#000000##FFFFFF
##5732C61.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#004DC3
Tritanopia (blue-blind)
#225B7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5732c6;
/* rgb */ color: rgb(87, 50, 198);
/* oklch */ color: oklch(46.1% 0.213 286.1);
Tailwind
colors: {
  custom: {
    50: '#926ed9',
    500: '#5732c6',
    950: '#000000',
  },
}
SCSS
$custom: #5732c6;
$custom-light: #926ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#5732c6",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 198
  },
  "hsl": {
    "h": 255,
    "s": 59.677,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46124,
    "c": 0.21269,
    "h": 286.1
  },
  "luminance": 0.08385
}

Semantic roles & 50–950 ramp

primary
#5732C6
secondary
#BCCD86
accent
#E345BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5732C6

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

Preview Lab → · Contrast checker → · Palette generator →

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