#5729AC#5729AC

#5729AC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.192 H 292.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5729AC
RGBrgb(87, 41, 172)
HSLhsl(261, 62%, 42%)
HSVhsv(261, 76%, 67%)
CMYKcmyk(49.4%, 76.2%, 0%, 32.5%)
CIE-LABlab(30.86, 50.03, -62.04)
CIE-LCHlch(30.86, 79.70, 308.89°)
OKLaboklab(42.65% 0.0726 -0.1781)
OKLCHoklch(42.65% 0.192 292.2)
XYZxyz(12.1677, 6.5902, 39.6527)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729AC #7EAC29
analogous
#293DAC #5729AC #9929AC
triadic
#5729AC #AC5729 #29AC57
tetradic
#5729AC #AC293D #7EAC29 #29AC99
square
#5729AC #AC293D #7EAC29 #29AC99
split-complementary
#5729AC #AC9929 #3DAC29
monochromatic
#251149 #3E1D7B #5729AC #7441D2 #9872DD

Accessibility & contrast

On white

9.06
#5729AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5729AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5729AC
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729AC#FFFFFF#000000##FFFFFF
##5729AC1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#3B4D69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5729ac;
/* rgb */ color: rgb(87, 41, 172);
/* oklch */ color: oklch(42.6% 0.192 292.2);
Tailwind
colors: {
  custom: {
    50: '#8f68c6',
    500: '#5729ac',
    950: '#000000',
  },
}
SCSS
$custom: #5729ac;
$custom-light: #8f68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5729ac",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 172
  },
  "hsl": {
    "h": 261.069,
    "s": 61.502,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.19231,
    "h": 292.2
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#5729AC
secondary
#A6C56C
accent
#E543AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5729AC

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

Preview Lab → · Contrast checker → · Palette generator →

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