#5729AF#5729AF

#5729AF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.196 H 291.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5729AF
RGBrgb(87, 41, 175)
HSLhsl(261, 62%, 42%)
HSVhsv(261, 77%, 69%)
CMYKcmyk(50.3%, 76.6%, 0%, 31.4%)
CIE-LABlab(31.13, 50.85, -63.38)
CIE-LCHlch(31.13, 81.26, 308.74°)
OKLaboklab(42.92% 0.0718 -0.182)
OKLCHoklch(42.92% 0.196 291.5)
XYZxyz(12.4591, 6.7068, 41.1872)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729AF #81AF29
analogous
#293EAF #5729AF #9A29AF
triadic
#5729AF #AF5729 #29AF57
tetradic
#5729AF #AF293E #81AF29 #29AF9A
square
#5729AF #AF293E #81AF29 #29AF9A
split-complementary
#5729AF #AF9A29 #3EAF29
monochromatic
#26124C #3E1D7D #5729AF #7442D3 #9974DE

Accessibility & contrast

On white

8.97
#5729AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5729AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5729AF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729AF#FFFFFF#000000##FFFFFF
##5729AF1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#394E6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5729af;
/* rgb */ color: rgb(87, 41, 175);
/* oklch */ color: oklch(42.9% 0.196 291.5);
Tailwind
colors: {
  custom: {
    50: '#8f68c8',
    500: '#5729af',
    950: '#000000',
  },
}
SCSS
$custom: #5729af;
$custom-light: #8f68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5729af",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 175
  },
  "hsl": {
    "h": 260.597,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42922,
    "c": 0.19567,
    "h": 291.5
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#5729AF
secondary
#A8C66E
accent
#E543AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5729AF

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

Preview Lab → · Contrast checker → · Palette generator →

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