#5727A5#5727A5

#5727A5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.187 H 294.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5727A5
RGBrgb(87, 39, 165)
HSLhsl(263, 62%, 40%)
HSVhsv(263, 76%, 65%)
CMYKcmyk(47.3%, 76.4%, 0%, 35.3%)
CIE-LABlab(29.90, 49.08, -59.40)
CIE-LCHlch(29.90, 77.06, 309.57°)
OKLaboklab(41.78% 0.0761 -0.1703)
OKLCHoklch(41.78% 0.187 294.1)
XYZxyz(11.4457, 6.1935, 36.1824)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727A5 #75A527
analogous
#2736A5 #5727A5 #9627A5
triadic
#5727A5 #A55727 #27A557
tetradic
#5727A5 #A52736 #75A527 #27A596
square
#5727A5 #A52736 #75A527 #27A596
split-complementary
#5727A5 #A59627 #36A527
monochromatic
#231042 #3D1B74 #5727A5 #7339D0 #966ADC

Accessibility & contrast

On white

9.38
#5727A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5727A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5727A5#FFFFFF#000000##FFFFFF
##5727A51.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#404965
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5727a5;
/* rgb */ color: rgb(87, 39, 165);
/* oklch */ color: oklch(41.8% 0.187 294.1);
Tailwind
colors: {
  custom: {
    50: '#8e66c1',
    500: '#5727a5',
    950: '#000000',
  },
}
SCSS
$custom: #5727a5;
$custom-light: #8e66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5727a5",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 262.857,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.41778,
    "c": 0.18657,
    "h": 294.1
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#5727A5
secondary
#9FC266
accent
#E543A7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5727A5

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

Preview Lab → · Contrast checker → · Palette generator →

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