#5731C2#5731C2

#5731C2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.209 H 286.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5731C2
RGBrgb(87, 49, 194)
HSLhsl(256, 60%, 48%)
HSVhsv(256, 75%, 76%)
CMYKcmyk(55.2%, 74.7%, 0%, 23.9%)
CIE-LABlab(34.23, 52.28, -69.55)
CIE-LCHlch(34.23, 87.01, 306.93°)
OKLaboklab(45.63% 0.0606 -0.2001)
OKLCHoklch(45.63% 0.209 286.8)
XYZxyz(14.7635, 8.1171, 51.8173)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731C2 #9CC231
analogous
#3154C2 #5731C2 #9F31C2
triadic
#5731C2 #C25731 #31C257
tetradic
#5731C2 #C23154 #9CC231 #31C29F
square
#5731C2 #C23154 #9CC231 #31C29F
split-complementary
#5731C2 #C29F31 #54C231
monochromatic
#2B1860 #412591 #5731C2 #7B5BD6 #A28CE2

Accessibility & contrast

On white

8.00
#5731C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5731C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731C2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731C2#FFFFFF#000000##FFFFFF
##5731C21.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#285977
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5731c2;
/* rgb */ color: rgb(87, 49, 194);
/* oklch */ color: oklch(45.6% 0.209 286.8);
Tailwind
colors: {
  custom: {
    50: '#926dd6',
    500: '#5731c2',
    950: '#000000',
  },
}
SCSS
$custom: #5731c2;
$custom-light: #926dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5731c2",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 255.724,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45629,
    "c": 0.20912,
    "h": 286.8
  },
  "luminance": 0.08118
}

Semantic roles & 50–950 ramp

primary
#5731C2
secondary
#B9CC83
accent
#E345B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5731C2

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

Preview Lab → · Contrast checker → · Palette generator →

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