#5731B5#5731B5

#5731B5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.194 H 289.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5731B5
RGBrgb(87, 49, 181)
HSLhsl(257, 57%, 45%)
HSVhsv(257, 73%, 71%)
CMYKcmyk(51.9%, 72.9%, 0%, 29%)
CIE-LABlab(33.05, 48.61, -63.82)
CIE-LCHlch(33.05, 80.22, 307.30°)
OKLaboklab(44.44% 0.0637 -0.1834)
OKLCHoklch(44.44% 0.194 289.2)
XYZxyz(13.3669, 7.5585, 44.4617)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5731B5 #8FB531
analogous
#314DB5 #5731B5 #9931B5
triadic
#5731B5 #B55731 #31B557
tetradic
#5731B5 #B5314D #8FB531 #31B599
square
#5731B5 #B5314D #8FB531 #31B599
split-complementary
#5731B5 #B59931 #4DB531
monochromatic
#291755 #402485 #5731B5 #7753D0 #9D83DD

Accessibility & contrast

On white

8.36
#5731B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5731B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5731B5
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5731B5#FFFFFF#000000##FFFFFF
##5731B51.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#345470
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5731b5;
/* rgb */ color: rgb(87, 49, 181);
/* oklch */ color: oklch(44.4% 0.194 289.2);
Tailwind
colors: {
  custom: {
    50: '#906dcc',
    500: '#5731b5',
    950: '#000000',
  },
}
SCSS
$custom: #5731b5;
$custom-light: #906dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5731b5",
  "rgb": {
    "r": 87,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 257.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44436,
    "c": 0.1941,
    "h": 289.2
  },
  "luminance": 0.07559
}

Semantic roles & 50–950 ramp

primary
#5731B5
secondary
#B1C77B
accent
#E147B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5731B5

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

Preview Lab → · Contrast checker → · Palette generator →

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