#5731BC#5731BC

#5731BC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.202 H 287.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5731BC
RGBrgb(87, 49, 188)
HSLhsl(256, 59%, 46%)
HSVhsv(256, 74%, 74%)
CMYKcmyk(53.7%, 73.9%, 0%, 26.3%)
CIE-LABlab(33.67, 50.59, -66.93)
CIE-LCHlch(33.67, 83.90, 307.09°)
OKLaboklab(45.07% 0.0621 -0.1925)
OKLCHoklch(45.07% 0.202 287.9)
XYZxyz(14.1032, 7.8530, 48.3399)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731BC #96BC31
analogous
#3151BC #5731BC #9D31BC
triadic
#5731BC #BC5731 #31BC57
tetradic
#5731BC #BC3151 #96BC31 #31BC9D
square
#5731BC #BC3151 #96BC31 #31BC9D
split-complementary
#5731BC #BC9D31 #51BC31
monochromatic
#2A185B #41248B #5731BC #7957D3 #A088E0

Accessibility & contrast

On white

8.17
#5731BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5731BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731BC
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731BC#FFFFFF#000000##FFFFFF
##5731BC1.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)
#0052C0
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#2E5774
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5731bc;
/* rgb */ color: rgb(87, 49, 188);
/* oklch */ color: oklch(45.1% 0.202 287.9);
Tailwind
colors: {
  custom: {
    50: '#916dd1',
    500: '#5731bc',
    950: '#000000',
  },
}
SCSS
$custom: #5731bc;
$custom-light: #916dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5731bc",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 256.403,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45073,
    "c": 0.20222,
    "h": 287.9
  },
  "luminance": 0.07854
}

Semantic roles & 50–950 ramp

primary
#5731BC
secondary
#B5CA7F
accent
#E246B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5731BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5731BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva