#5729A5#5729A5

#5729A5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.184 H 293.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5729A5
RGBrgb(87, 41, 165)
HSLhsl(262, 60%, 40%)
HSVhsv(262, 75%, 65%)
CMYKcmyk(47.3%, 75.2%, 0%, 35.3%)
CIE-LABlab(30.23, 48.14, -58.86)
CIE-LCHlch(30.23, 76.04, 309.28°)
OKLaboklab(42.01% 0.0744 -0.1687)
OKLCHoklch(42.01% 0.184 293.8)
XYZxyz(11.5131, 6.3284, 36.2049)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5729A5 #77A529
analogous
#2939A5 #5729A5 #9529A5
triadic
#5729A5 #A55729 #29A557
tetradic
#5729A5 #A52939 #77A529 #29A595
square
#5729A5 #A52939 #77A529 #29A595
split-complementary
#5729A5 #A59529 #39A529
monochromatic
#231143 #3D1D74 #5729A5 #733DCF #966EDB

Accessibility & contrast

On white

9.27
#5729A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5729A5
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5729A5#FFFFFF#000000##FFFFFF
##5729A51.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#404A65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5729a5;
/* rgb */ color: rgb(87, 41, 165);
/* oklch */ color: oklch(42.0% 0.184 293.8);
Tailwind
colors: {
  custom: {
    50: '#8e68c1',
    500: '#5729a5',
    950: '#000000',
  },
}
SCSS
$custom: #5729a5;
$custom-light: #8e68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5729a5",
  "rgb": {
    "r": 87,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 262.258,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4201,
    "c": 0.18443,
    "h": 293.8
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#5729A5
secondary
#A0C268
accent
#E344A8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5729A5

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

Preview Lab → · Contrast checker → · Palette generator →

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