#5732C2#5732C2

#5732C2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.208 H 286.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5732C2
RGBrgb(87, 50, 194)
HSLhsl(255, 59%, 48%)
HSVhsv(255, 74%, 76%)
CMYKcmyk(55.2%, 74.2%, 0%, 23.9%)
CIE-LABlab(34.40, 51.79, -69.27)
CIE-LCHlch(34.40, 86.49, 306.79°)
OKLaboklab(45.75% 0.0598 -0.1993)
OKLCHoklch(45.75% 0.208 286.7)
XYZxyz(14.8058, 8.2017, 51.8314)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732C2 #9DC232
analogous
#3255C2 #5732C2 #9F32C2
triadic
#5732C2 #C25732 #32C257
tetradic
#5732C2 #C23255 #9DC232 #32C29F
square
#5732C2 #C23255 #9DC232 #32C29F
split-complementary
#5732C2 #C29F32 #55C232
monochromatic
#2B1961 #412591 #5732C2 #7B5CD5 #A38DE2

Accessibility & contrast

On white

7.95
#5732C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5732C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732C2
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732C2#FFFFFF#000000##FFFFFF
##5732C21.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#285A78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5732c2;
/* rgb */ color: rgb(87, 50, 194);
/* oklch */ color: oklch(45.8% 0.208 286.7);
Tailwind
colors: {
  custom: {
    50: '#926ed6',
    500: '#5732c2',
    950: '#000000',
  },
}
SCSS
$custom: #5732c2;
$custom-light: #926ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5732c2",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 194
  },
  "hsl": {
    "h": 255.417,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.20811,
    "h": 286.7
  },
  "luminance": 0.08202
}

Semantic roles & 50–950 ramp

primary
#5732C2
secondary
#B9CC84
accent
#E246BA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5732C2

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

Preview Lab → · Contrast checker → · Palette generator →

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