#5731D4#5731D4

#5731D4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.229 H 284.1°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5731D4
RGBrgb(87, 49, 212)
HSLhsl(254, 65%, 51%)
HSVhsv(254, 77%, 83%)
CMYKcmyk(59%, 76.9%, 0%, 16.9%)
CIE-LABlab(35.94, 57.34, -77.21)
CIE-LCHlch(35.94, 96.18, 306.60°)
OKLaboklab(47.34% 0.0558 -0.2225)
OKLCHoklch(47.34% 0.229 284.1)
XYZxyz(16.9088, 8.9752, 63.1160)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731D4 #AED431
analogous
#315CD4 #5731D4 #A831D4
triadic
#5731D4 #D45731 #31D457
tetradic
#5731D4 #D4315C #AED431 #31D4A8
square
#5731D4 #D4315C #AED431 #31D4A8
split-complementary
#5731D4 #D4A831 #5CD431
monochromatic
#2D1873 #4123A5 #5731D4 #8064DF #AA96E9

Accessibility & contrast

On white

7.51
#5731D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5731D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731D4
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731D4#FFFFFF#000000##FFFFFF
##5731D41.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#004FD1
Tritanopia (blue-blind)
#006182
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5731d4;
/* rgb */ color: rgb(87, 49, 212);
/* oklch */ color: oklch(47.3% 0.229 284.1);
Tailwind
colors: {
  custom: {
    50: '#956ee3',
    500: '#5731d4',
    950: '#000000',
  },
}
SCSS
$custom: #5731d4;
$custom-light: #956ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5731d4",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 253.988,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47344,
    "c": 0.22943,
    "h": 284.1
  },
  "luminance": 0.08976
}

Semantic roles & 50–950 ramp

primary
#5731D4
secondary
#C4D48C
accent
#E83FC1
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5731D4

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

Preview Lab → · Contrast checker → · Palette generator →

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