#5731C4#5731C4

#5731C4 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.211 H 286.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5731C4
RGBrgb(87, 49, 196)
HSLhsl(256, 60%, 48%)
HSVhsv(256, 75%, 77%)
CMYKcmyk(55.6%, 75%, 0%, 23.1%)
CIE-LABlab(34.41, 52.85, -70.42)
CIE-LCHlch(34.41, 88.04, 306.89°)
OKLaboklab(45.82% 0.0601 -0.2027)
OKLCHoklch(45.82% 0.211 286.5)
XYZxyz(14.9896, 8.2076, 53.0082)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731C4 #9EC431
analogous
#3155C4 #5731C4 #A031C4
triadic
#5731C4 #C45731 #31C457
tetradic
#5731C4 #C43155 #9EC431 #31C4A0
square
#5731C4 #C43155 #9EC431 #31C4A0
split-complementary
#5731C4 #C4A031 #55C431
monochromatic
#2C1962 #412593 #5731C4 #7C5CD6 #A38DE2

Accessibility & contrast

On white

7.95
#5731C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5731C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731C4
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731C4#FFFFFF#000000##FFFFFF
##5731C41.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C8
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#255A78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5731c4;
/* rgb */ color: rgb(87, 49, 196);
/* oklch */ color: oklch(45.8% 0.211 286.5);
Tailwind
colors: {
  custom: {
    50: '#926dd7',
    500: '#5731c4',
    950: '#000000',
  },
}
SCSS
$custom: #5731c4;
$custom-light: #926dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5731c4",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 255.51,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.2114,
    "h": 286.5
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#5731C4
secondary
#BACD84
accent
#E345BA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5731C4

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

Preview Lab → · Contrast checker → · Palette generator →

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