#5727AA#5727AA

#5727AA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.192 H 292.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5727AA
RGBrgb(87, 39, 170)
HSLhsl(262, 63%, 41%)
HSVhsv(262, 77%, 67%)
CMYKcmyk(48.8%, 77.1%, 0%, 33.3%)
CIE-LABlab(30.35, 50.42, -61.67)
CIE-LCHlch(30.35, 79.66, 309.27°)
OKLaboklab(42.24% 0.0748 -0.177)
OKLCHoklch(42.24% 0.192 292.9)
XYZxyz(11.9097, 6.3791, 38.6262)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727AA #7AAA27
analogous
#2738AA #5727AA #9827AA
triadic
#5727AA #AA5727 #27AA57
tetradic
#5727AA #AA2738 #7AAA27 #27AA98
square
#5727AA #AA2738 #7AAA27 #27AA98
split-complementary
#5727AA #AA9827 #38AA27
monochromatic
#241046 #3E1C78 #5727AA #733CD2 #976EDE

Accessibility & contrast

On white

9.23
#5727AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5727AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5727AA
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5727AA#FFFFFF#000000##FFFFFF
##5727AA1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#3D4B67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5727aa;
/* rgb */ color: rgb(87, 39, 170);
/* oklch */ color: oklch(42.2% 0.192 292.9);
Tailwind
colors: {
  custom: {
    50: '#8f67c4',
    500: '#5727aa',
    950: '#000000',
  },
}
SCSS
$custom: #5727aa;
$custom-light: #8f67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5727aa",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 261.985,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42235,
    "c": 0.19212,
    "h": 292.9
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#5727AA
secondary
#A3C469
accent
#E642AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5727AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5727AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva