#5731BD#5731BD

#5731BD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.203 H 287.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5731BD
RGBrgb(87, 49, 189)
HSLhsl(256, 59%, 47%)
HSVhsv(256, 74%, 74%)
CMYKcmyk(54%, 74.1%, 0%, 25.9%)
CIE-LABlab(33.77, 50.87, -67.37)
CIE-LCHlch(33.77, 84.42, 307.06°)
OKLaboklab(45.17% 0.0618 -0.1937)
OKLCHoklch(45.17% 0.203 287.7)
XYZxyz(14.2114, 7.8963, 48.9095)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731BD #97BD31
analogous
#3151BD #5731BD #9D31BD
triadic
#5731BD #BD5731 #31BD57
tetradic
#5731BD #BD3151 #97BD31 #31BD9D
square
#5731BD #BD3151 #97BD31 #31BD9D
split-complementary
#5731BD #BD9D31 #51BD31
monochromatic
#2A185C #41248C #5731BD #7958D4 #A088E0

Accessibility & contrast

On white

8.14
#5731BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5731BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731BD
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731BD#FFFFFF#000000##FFFFFF
##5731BD1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#2D5775
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5731bd;
/* rgb */ color: rgb(87, 49, 189);
/* oklch */ color: oklch(45.2% 0.203 287.7);
Tailwind
colors: {
  custom: {
    50: '#916dd2',
    500: '#5731bd',
    950: '#000000',
  },
}
SCSS
$custom: #5731bd;
$custom-light: #916dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5731bd",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 256.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45165,
    "c": 0.20338,
    "h": 287.7
  },
  "luminance": 0.07897
}

Semantic roles & 50–950 ramp

primary
#5731BD
secondary
#B6CA80
accent
#E246B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5731BD

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

Preview Lab → · Contrast checker → · Palette generator →

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