#5731CF#5731CF

#5731CF is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.9% C 0.224 H 284.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5731CF
RGBrgb(87, 49, 207)
HSLhsl(254, 62%, 50%)
HSVhsv(254, 76%, 81%)
CMYKcmyk(58%, 76.3%, 0%, 18.8%)
CIE-LABlab(35.45, 55.94, -75.12)
CIE-LCHlch(35.45, 93.66, 306.68°)
OKLaboklab(46.86% 0.0572 -0.2164)
OKLCHoklch(46.86% 0.224 284.8)
XYZxyz(16.2878, 8.7268, 59.8456)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731CF #A9CF31
analogous
#315ACF #5731CF #A631CF
triadic
#5731CF #CF5731 #31CF57
tetradic
#5731CF #CF315A #A9CF31 #31CFA6
square
#5731CF #CF315A #A9CF31 #31CFA6
split-complementary
#5731CF #CFA631 #5ACF31
monochromatic
#2D196C #42259E #5731CF #7F63DB #A894E6

Accessibility & contrast

On white

7.65
#5731CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5731CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731CF
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731CF#FFFFFF#000000##FFFFFF
##5731CF1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004ECC
Tritanopia (blue-blind)
#115F7F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5731cf;
/* rgb */ color: rgb(87, 49, 207);
/* oklch */ color: oklch(46.9% 0.224 284.8);
Tailwind
colors: {
  custom: {
    50: '#946edf',
    500: '#5731cf',
    950: '#000000',
  },
}
SCSS
$custom: #5731cf;
$custom-light: #946edf;
$custom-dark: #000000;
JSON
{
  "hex": "#5731cf",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 254.43,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4686,
    "c": 0.22384,
    "h": 284.8
  },
  "luminance": 0.08728
}

Semantic roles & 50–950 ramp

primary
#5731CF
secondary
#C0D18B
accent
#E543BE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5731CF

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

Preview Lab → · Contrast checker → · Palette generator →

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