#5732C1#5732C1

#5732C1 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.207 H 286.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5732C1
RGBrgb(87, 50, 193)
HSLhsl(256, 59%, 48%)
HSVhsv(256, 74%, 76%)
CMYKcmyk(54.9%, 74.1%, 0%, 24.3%)
CIE-LABlab(34.31, 51.51, -68.83)
CIE-LCHlch(34.31, 85.97, 306.81°)
OKLaboklab(45.66% 0.0601 -0.198)
OKLCHoklch(45.66% 0.207 286.9)
XYZxyz(14.6938, 8.1569, 51.2419)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732C1 #9CC132
analogous
#3255C1 #5732C1 #9E32C1
triadic
#5732C1 #C15732 #32C157
tetradic
#5732C1 #C13255 #9CC132 #32C19E
square
#5732C1 #C13255 #9CC132 #32C19E
split-complementary
#5732C1 #C19E32 #55C132
monochromatic
#2B1960 #412590 #5732C1 #7B5CD5 #A28CE1

Accessibility & contrast

On white

7.98
#5732C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5732C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732C1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732C1#FFFFFF#000000##FFFFFF
##5732C11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#295977
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5732c1;
/* rgb */ color: rgb(87, 50, 193);
/* oklch */ color: oklch(45.7% 0.207 286.9);
Tailwind
colors: {
  custom: {
    50: '#916ed5',
    500: '#5732c1',
    950: '#000000',
  },
}
SCSS
$custom: #5732c1;
$custom-light: #916ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#5732c1",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 193
  },
  "hsl": {
    "h": 255.524,
    "s": 58.848,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45658,
    "c": 0.20695,
    "h": 286.9
  },
  "luminance": 0.08158
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5732C1

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

Preview Lab → · Contrast checker → · Palette generator →

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