#5727AE#5727AE

#5727AE is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.197 H 292.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5727AE
RGBrgb(87, 39, 174)
HSLhsl(261, 63%, 42%)
HSVhsv(261, 78%, 68%)
CMYKcmyk(50%, 77.6%, 0%, 31.8%)
CIE-LABlab(30.72, 51.49, -63.46)
CIE-LCHlch(30.72, 81.72, 309.05°)
OKLaboklab(42.61% 0.0736 -0.1822)
OKLCHoklch(42.61% 0.197 292)
XYZxyz(12.2938, 6.5328, 40.6494)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727AE #7EAE27
analogous
#273BAE #5727AE #9B27AE
triadic
#5727AE #AE5727 #27AE57
tetradic
#5727AE #AE273B #7EAE27 #27AE9B
square
#5727AE #AE273B #7EAE27 #27AE9B
split-complementary
#5727AE #AE9B27 #3BAE27
monochromatic
#25114A #3E1C7C #5727AE #743ED4 #9870DF

Accessibility & contrast

On white

9.10
#5727AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5727AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5727AE#FFFFFF#000000##FFFFFF
##5727AE1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#3A4D6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5727ae;
/* rgb */ color: rgb(87, 39, 174);
/* oklch */ color: oklch(42.6% 0.197 292.0);
Tailwind
colors: {
  custom: {
    50: '#8f67c7',
    500: '#5727ae',
    950: '#000000',
  },
}
SCSS
$custom: #5727ae;
$custom-light: #8f67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5727ae",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 261.333,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42606,
    "c": 0.19654,
    "h": 292
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#5727AE
secondary
#A6C66B
accent
#E641AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5727AE

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

Preview Lab → · Contrast checker → · Palette generator →

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