#5731C7#5731C7

#5731C7 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.215 H 286.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5731C7
RGBrgb(87, 49, 199)
HSLhsl(255, 60%, 49%)
HSVhsv(255, 75%, 78%)
CMYKcmyk(56.3%, 75.4%, 0%, 22%)
CIE-LABlab(34.69, 53.69, -71.71)
CIE-LCHlch(34.69, 89.59, 306.82°)
OKLaboklab(46.1% 0.0593 -0.2065)
OKLCHoklch(46.1% 0.215 286)
XYZxyz(15.3345, 8.3455, 54.8246)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731C7 #A1C731
analogous
#3156C7 #5731C7 #A231C7
triadic
#5731C7 #C75731 #31C757
tetradic
#5731C7 #C73156 #A1C731 #31C7A2
square
#5731C7 #C73156 #A1C731 #31C7A2
split-complementary
#5731C7 #C7A231 #56C731
monochromatic
#2C1965 #422596 #5731C7 #7D5ED7 #A48FE3

Accessibility & contrast

On white

7.87
#5731C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5731C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731C7
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731C7#FFFFFF#000000##FFFFFF
##5731C71.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#215B7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5731c7;
/* rgb */ color: rgb(87, 49, 199);
/* oklch */ color: oklch(46.1% 0.215 286.0);
Tailwind
colors: {
  custom: {
    50: '#926ed9',
    500: '#5731c7',
    950: '#000000',
  },
}
SCSS
$custom: #5731c7;
$custom-light: #926ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#5731c7",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 255.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46098,
    "c": 0.21481,
    "h": 286
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5731C7

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

Preview Lab → · Contrast checker → · Palette generator →

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