#5732B2#5732B2

#5732B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.189 H 289.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5732B2
RGBrgb(87, 50, 178)
HSLhsl(257, 56%, 45%)
HSVhsv(257, 72%, 70%)
CMYKcmyk(51.1%, 71.9%, 0%, 30.2%)
CIE-LABlab(32.97, 47.25, -62.17)
CIE-LCHlch(32.97, 78.08, 307.24°)
OKLaboklab(44.3% 0.0635 -0.1785)
OKLCHoklch(44.3% 0.189 289.6)
XYZxyz(13.1046, 7.5212, 42.8721)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732B2 #8DB232
analogous
#324DB2 #5732B2 #9732B2
triadic
#5732B2 #B25732 #32B257
tetradic
#5732B2 #B2324D #8DB232 #32B297
square
#5732B2 #B2324D #8DB232 #32B297
split-complementary
#5732B2 #B29732 #4DB232
monochromatic
#281752 #402582 #5732B2 #7653CF #9C82DC

Accessibility & contrast

On white

8.39
#5732B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5732B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732B2
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732B2#FFFFFF#000000##FFFFFF
##5732B21.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#37546F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5732b2;
/* rgb */ color: rgb(87, 50, 178);
/* oklch */ color: oklch(44.3% 0.189 289.6);
Tailwind
colors: {
  custom: {
    50: '#8f6dca',
    500: '#5732b2',
    950: '#000000',
  },
}
SCSS
$custom: #5732b2;
$custom-light: #8f6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5732b2",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 257.344,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44298,
    "c": 0.18947,
    "h": 289.6
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#5732B2
secondary
#B0C57B
accent
#DF48B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5732B2

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

Preview Lab → · Contrast checker → · Palette generator →

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