#5731CA#5731CA

#5731CA is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.218 H 285.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5731CA
RGBrgb(87, 49, 202)
HSLhsl(255, 61%, 49%)
HSVhsv(255, 76%, 79%)
CMYKcmyk(56.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(34.98, 54.54, -72.99)
CIE-LCHlch(34.98, 91.12, 306.77°)
OKLaboklab(46.38% 0.0585 -0.2102)
OKLCHoklch(46.38% 0.218 285.6)
XYZxyz(15.6862, 8.4862, 56.6771)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731CA #A4CA31
analogous
#3158CA #5731CA #A431CA
triadic
#5731CA #CA5731 #31CA57
tetradic
#5731CA #CA3158 #A4CA31 #31CAA4
square
#5731CA #CA3158 #A4CA31 #31CAA4
split-complementary
#5731CA #CAA431 #58CA31
monochromatic
#2D1967 #422599 #5731CA #7E60D8 #A691E4

Accessibility & contrast

On white

7.79
#5731CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5731CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731CA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731CA#FFFFFF#000000##FFFFFF
##5731CA1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#1C5D7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5731ca;
/* rgb */ color: rgb(87, 49, 202);
/* oklch */ color: oklch(46.4% 0.218 285.6);
Tailwind
colors: {
  custom: {
    50: '#936edb',
    500: '#5731ca',
    950: '#000000',
  },
}
SCSS
$custom: #5731ca;
$custom-light: #936edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5731ca",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 254.902,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46382,
    "c": 0.21821,
    "h": 285.6
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5731CA

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

Preview Lab → · Contrast checker → · Palette generator →

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