#5729A6#5729A6

#5729A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.186 H 293.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5729A6
RGBrgb(87, 41, 166)
HSLhsl(262, 60%, 41%)
HSVhsv(262, 75%, 65%)
CMYKcmyk(47.6%, 75.3%, 0%, 34.9%)
CIE-LABlab(30.32, 48.41, -59.32)
CIE-LCHlch(30.32, 76.56, 309.22°)
OKLaboklab(42.1% 0.0742 -0.1701)
OKLCHoklch(42.1% 0.186 293.6)
XYZxyz(11.6045, 6.3649, 36.6861)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729A6 #78A629
analogous
#293AA6 #5729A6 #9529A6
triadic
#5729A6 #A65729 #29A657
tetradic
#5729A6 #A6293A #78A629 #29A695
square
#5729A6 #A6293A #78A629 #29A695
split-complementary
#5729A6 #A69529 #3AA629
monochromatic
#241144 #3D1D75 #5729A6 #733DCF #966EDB

Accessibility & contrast

On white

9.24
#5729A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5729A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5729A6
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729A6#FFFFFF#000000##FFFFFF
##5729A61.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#3F4B66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5729a6;
/* rgb */ color: rgb(87, 41, 166);
/* oklch */ color: oklch(42.1% 0.186 293.6);
Tailwind
colors: {
  custom: {
    50: '#8e68c1',
    500: '#5729a6',
    950: '#000000',
  },
}
SCSS
$custom: #5729a6;
$custom-light: #8e68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5729a6",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 262.08,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.421,
    "c": 0.18557,
    "h": 293.6
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#5729A6
secondary
#A1C269
accent
#E444A9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5729A6

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

Preview Lab → · Contrast checker → · Palette generator →

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