#5729A4#5729A4

#5729A4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.183 H 294.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5729A4
RGBrgb(87, 41, 164)
HSLhsl(262, 60%, 40%)
HSVhsv(262, 75%, 64%)
CMYKcmyk(47%, 75%, 0%, 35.7%)
CIE-LABlab(30.14, 47.87, -58.40)
CIE-LCHlch(30.14, 75.51, 309.34°)
OKLaboklab(41.92% 0.0747 -0.1674)
OKLCHoklch(41.92% 0.183 294)
XYZxyz(11.4224, 6.2921, 35.7274)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729A4 #76A429
analogous
#2938A4 #5729A4 #9429A4
triadic
#5729A4 #A45729 #29A457
tetradic
#5729A4 #A42938 #76A429 #29A494
square
#5729A4 #A42938 #76A429 #29A494
split-complementary
#5729A4 #A49429 #38A429
monochromatic
#231142 #3D1D73 #5729A4 #733CCE #966DDA

Accessibility & contrast

On white

9.30
#5729A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5729A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5729A4
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729A4#FFFFFF#000000##FFFFFF
##5729A41.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#404A64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5729a4;
/* rgb */ color: rgb(87, 41, 164);
/* oklch */ color: oklch(41.9% 0.183 294.0);
Tailwind
colors: {
  custom: {
    50: '#8e68c0',
    500: '#5729a4',
    950: '#000000',
  },
}
SCSS
$custom: #5729a4;
$custom-light: #8e68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5729a4",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 164
  },
  "hsl": {
    "h": 262.439,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41921,
    "c": 0.1833,
    "h": 294
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#5729A4
secondary
#A0C168
accent
#E345A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5729A4

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

Preview Lab → · Contrast checker → · Palette generator →

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