#5729A2#5729A2

#5729A2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.181 H 294.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5729A2
RGBrgb(87, 41, 162)
HSLhsl(263, 60%, 40%)
HSVhsv(263, 75%, 64%)
CMYKcmyk(46.3%, 74.7%, 0%, 36.5%)
CIE-LABlab(29.96, 47.33, -57.48)
CIE-LCHlch(29.96, 74.46, 309.47°)
OKLaboklab(41.74% 0.0752 -0.1647)
OKLCHoklch(41.74% 0.181 294.5)
XYZxyz(11.2432, 6.2204, 34.7837)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729A2 #74A229
analogous
#2937A2 #5729A2 #9429A2
triadic
#5729A2 #A25729 #29A257
tetradic
#5729A2 #A22937 #74A229 #29A294
square
#5729A2 #A22937 #74A229 #29A294
split-complementary
#5729A2 #A29429 #37A229
monochromatic
#231040 #3D1D71 #5729A2 #733BCD #966CDA

Accessibility & contrast

On white

9.36
#5729A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5729A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5729A2
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729A2#FFFFFF#000000##FFFFFF
##5729A21.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#414963
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5729a2;
/* rgb */ color: rgb(87, 41, 162);
/* oklch */ color: oklch(41.7% 0.181 294.5);
Tailwind
colors: {
  custom: {
    50: '#8e67bf',
    500: '#5729a2',
    950: '#000000',
  },
}
SCSS
$custom: #5729a2;
$custom-light: #8e67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5729a2",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 262.81,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41743,
    "c": 0.18104,
    "h": 294.5
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#5729A2
secondary
#9EC067
accent
#E345A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5729A2

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

Preview Lab → · Contrast checker → · Palette generator →

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