#5732B3#5732B3

#5732B3 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.191 H 289.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5732B3
RGBrgb(87, 50, 179)
HSLhsl(257, 56%, 45%)
HSVhsv(257, 72%, 70%)
CMYKcmyk(51.4%, 72.1%, 0%, 29.8%)
CIE-LABlab(33.05, 47.53, -62.62)
CIE-LCHlch(33.05, 78.62, 307.20°)
OKLaboklab(44.39% 0.0633 -0.1798)
OKLCHoklch(44.39% 0.191 289.4)
XYZxyz(13.2054, 7.5615, 43.4028)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732B3 #8EB332
analogous
#324EB3 #5732B3 #9732B3
triadic
#5732B3 #B35732 #32B357
tetradic
#5732B3 #B3324E #8EB332 #32B397
square
#5732B3 #B3324E #8EB332 #32B397
split-complementary
#5732B3 #B39732 #4EB332
monochromatic
#281753 #402583 #5732B3 #7753CF #9D83DC

Accessibility & contrast

On white

8.36
#5732B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5732B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732B3
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732B3#FFFFFF#000000##FFFFFF
##5732B31.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#36546F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5732b3;
/* rgb */ color: rgb(87, 50, 179);
/* oklch */ color: oklch(44.4% 0.191 289.4);
Tailwind
colors: {
  custom: {
    50: '#8f6dcb',
    500: '#5732b3',
    950: '#000000',
  },
}
SCSS
$custom: #5732b3;
$custom-light: #8f6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5732b3",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 179
  },
  "hsl": {
    "h": 257.209,
    "s": 56.332,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44387,
    "c": 0.19065,
    "h": 289.4
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#5732B3
secondary
#B0C67B
accent
#E048B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5732B3

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

Preview Lab → · Contrast checker → · Palette generator →

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