#5732BE#5732BE

#5732BE is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.203 H 287.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5732BE
RGBrgb(87, 50, 190)
HSLhsl(256, 58%, 47%)
HSVhsv(256, 74%, 75%)
CMYKcmyk(54.2%, 73.7%, 0%, 25.5%)
CIE-LABlab(34.03, 50.66, -67.52)
CIE-LCHlch(34.03, 84.41, 306.88°)
OKLaboklab(45.38% 0.0608 -0.1942)
OKLCHoklch(45.38% 0.203 287.4)
XYZxyz(14.3626, 8.0244, 49.4973)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5732BE #99BE32
analogous
#3253BE #5732BE #9D32BE
triadic
#5732BE #BE5732 #32BE57
tetradic
#5732BE #BE3253 #99BE32 #32BE9D
square
#5732BE #BE3253 #99BE32 #32BE9D
split-complementary
#5732BE #BE9D32 #53BE32
monochromatic
#2B195D #41258E #5732BE #7A5AD3 #A18AE0

Accessibility & contrast

On white

8.06
#5732BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5732BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5732BE
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5732BE#FFFFFF#000000##FFFFFF
##5732BE1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#2C5875
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5732be;
/* rgb */ color: rgb(87, 50, 190);
/* oklch */ color: oklch(45.4% 0.203 287.4);
Tailwind
colors: {
  custom: {
    50: '#916ed3',
    500: '#5732be',
    950: '#000000',
  },
}
SCSS
$custom: #5732be;
$custom-light: #916ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5732be",
  "rgb": {
    "r": 87,
    "g": 50,
    "b": 190
  },
  "hsl": {
    "h": 255.857,
    "s": 58.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45382,
    "c": 0.20349,
    "h": 287.4
  },
  "luminance": 0.08025
}

Semantic roles & 50–950 ramp

primary
#5732BE
secondary
#B7CA82
accent
#E246B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5732BE

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

Preview Lab → · Contrast checker → · Palette generator →

#5732BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva