#5727A6#5727A6

#5727A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.188 H 293.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5727A6
RGBrgb(87, 39, 166)
HSLhsl(263, 62%, 40%)
HSVhsv(263, 77%, 65%)
CMYKcmyk(47.6%, 76.5%, 0%, 34.9%)
CIE-LABlab(29.99, 49.35, -59.86)
CIE-LCHlch(29.99, 77.58, 309.51°)
OKLaboklab(41.87% 0.0759 -0.1717)
OKLCHoklch(41.87% 0.188 293.8)
XYZxyz(11.5370, 6.2301, 36.6637)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727A6 #76A627
analogous
#2737A6 #5727A6 #9627A6
triadic
#5727A6 #A65727 #27A657
tetradic
#5727A6 #A62737 #76A627 #27A696
square
#5727A6 #A62737 #76A627 #27A696
split-complementary
#5727A6 #A69627 #37A627
monochromatic
#231043 #3D1B74 #5727A6 #733AD1 #966BDC

Accessibility & contrast

On white

9.35
#5727A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5727A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5727A6#FFFFFF#000000##FFFFFF
##5727A61.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#3F4A65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5727a6;
/* rgb */ color: rgb(87, 39, 166);
/* oklch */ color: oklch(41.9% 0.188 293.8);
Tailwind
colors: {
  custom: {
    50: '#8e67c1',
    500: '#5727a6',
    950: '#000000',
  },
}
SCSS
$custom: #5727a6;
$custom-light: #8e67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5727a6",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 262.677,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.18767,
    "h": 293.8
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#5727A6
secondary
#A0C366
accent
#E543A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5727A6

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

Preview Lab → · Contrast checker → · Palette generator →

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