#5729BA#5729BA

#5729BA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.208 H 289.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5729BA
RGBrgb(87, 41, 186)
HSLhsl(259, 64%, 45%)
HSVhsv(259, 78%, 73%)
CMYKcmyk(53.2%, 78%, 0%, 27.1%)
CIE-LABlab(32.16, 53.83, -68.23)
CIE-LCHlch(32.16, 86.91, 308.27°)
OKLaboklab(43.96% 0.0686 -0.1962)
OKLCHoklch(43.96% 0.208 289.3)
XYZxyz(13.5838, 7.1566, 47.1105)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729BA #8CBA29
analogous
#2944BA #5729BA #9F29BA
triadic
#5729BA #BA5729 #29BA57
tetradic
#5729BA #BA2944 #8CBA29 #29BA9F
square
#5729BA #BA2944 #8CBA29 #29BA9F
split-complementary
#5729BA #BA9F29 #44BA29
monochromatic
#281356 #401E88 #5729BA #7649D7 #9C7BE2

Accessibility & contrast

On white

8.64
#5729BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5729BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5729BA
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729BA#FFFFFF#000000##FFFFFF
##5729BA1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#315371
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5729ba;
/* rgb */ color: rgb(87, 41, 186);
/* oklch */ color: oklch(44.0% 0.208 289.3);
Tailwind
colors: {
  custom: {
    50: '#9169d0',
    500: '#5729ba',
    950: '#000000',
  },
}
SCSS
$custom: #5729ba;
$custom-light: #9169d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5729ba",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 186
  },
  "hsl": {
    "h": 259.034,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.20787,
    "h": 289.3
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#5729BA
secondary
#AFCA75
accent
#E741B2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5729BA

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

Preview Lab → · Contrast checker → · Palette generator →

#5729BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva