#5732BA#5732BA

#5732BA is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.199 H 288.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5732BA
RGBrgb(87, 50, 186)
HSLhsl(256, 58%, 46%)
HSVhsv(256, 73%, 73%)
CMYKcmyk(53.2%, 73.1%, 0%, 27.1%)
CIE-LABlab(33.67, 49.52, -65.75)
CIE-LCHlch(33.67, 82.31, 306.99°)
OKLaboklab(45.02% 0.0617 -0.189)
OKLCHoklch(45.02% 0.199 288.1)
XYZxyz(13.9314, 7.8519, 47.2264)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732BA #95BA32
analogous
#3251BA #5732BA #9B32BA
triadic
#5732BA #BA5732 #32BA57
tetradic
#5732BA #BA3251 #95BA32 #32BA9B
square
#5732BA #BA3251 #95BA32 #32BA9B
split-complementary
#5732BA #BA9B32 #51BA32
monochromatic
#2A185A #40258A #5732BA #7957D2 #9F88DF

Accessibility & contrast

On white

8.17
#5732BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5732BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732BA
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732BA#FFFFFF#000000##FFFFFF
##5732BA1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#305773
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5732ba;
/* rgb */ color: rgb(87, 50, 186);
/* oklch */ color: oklch(45.0% 0.199 288.1);
Tailwind
colors: {
  custom: {
    50: '#906ed0',
    500: '#5732ba',
    950: '#000000',
  },
}
SCSS
$custom: #5732ba;
$custom-light: #906ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5732ba",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 256.324,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.19884,
    "h": 288.1
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#5732BA
secondary
#B5C97F
accent
#E147B7
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5732BA

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

Preview Lab → · Contrast checker → · Palette generator →

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