#5731C8#5731C8

#5731C8 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.216 H 285.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5731C8
RGBrgb(87, 49, 200)
HSLhsl(255, 61%, 49%)
HSVhsv(255, 76%, 78%)
CMYKcmyk(56.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(34.79, 53.98, -72.14)
CIE-LCHlch(34.79, 90.10, 306.80°)
OKLaboklab(46.19% 0.059 -0.2077)
OKLCHoklch(46.19% 0.216 285.9)
XYZxyz(15.4510, 8.3921, 55.4381)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731C8 #A2C831
analogous
#3157C8 #5731C8 #A331C8
triadic
#5731C8 #C85731 #31C857
tetradic
#5731C8 #C83157 #A2C831 #31C8A3
square
#5731C8 #C83157 #A2C831 #31C8A3
split-complementary
#5731C8 #C8A331 #57C831
monochromatic
#2C1966 #422597 #5731C8 #7D5FD8 #A590E4

Accessibility & contrast

On white

7.84
#5731C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5731C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731C8
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731C8#FFFFFF#000000##FFFFFF
##5731C81.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004DC5
Tritanopia (blue-blind)
#1F5C7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5731c8;
/* rgb */ color: rgb(87, 49, 200);
/* oklch */ color: oklch(46.2% 0.216 285.9);
Tailwind
colors: {
  custom: {
    50: '#936eda',
    500: '#5731c8',
    950: '#000000',
  },
}
SCSS
$custom: #5731c8;
$custom-light: #936eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5731c8",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 255.099,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46193,
    "c": 0.21595,
    "h": 285.9
  },
  "luminance": 0.08393
}

Semantic roles & 50–950 ramp

primary
#5731C8
secondary
#BCCE86
accent
#E444BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5731C8

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

Preview Lab → · Contrast checker → · Palette generator →

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