#5727A2#5727A2

#5727A2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.183 H 294.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5727A2
RGBrgb(87, 39, 162)
HSLhsl(263, 61%, 39%)
HSVhsv(263, 76%, 64%)
CMYKcmyk(46.3%, 75.9%, 0%, 36.5%)
CIE-LABlab(29.63, 48.28, -58.02)
CIE-LCHlch(29.63, 75.49, 309.76°)
OKLaboklab(41.51% 0.0769 -0.1663)
OKLCHoklch(41.51% 0.183 294.8)
XYZxyz(11.1758, 6.0856, 34.7612)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727A2 #72A227
analogous
#2734A2 #5727A2 #9527A2
triadic
#5727A2 #A25727 #27A257
tetradic
#5727A2 #A22734 #72A227 #27A295
square
#5727A2 #A22734 #72A227 #27A295
split-complementary
#5727A2 #A29527 #34A227
monochromatic
#220F3F #3D1B71 #5727A2 #7237CF #9569DB

Accessibility & contrast

On white

9.47
#5727A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5727A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5727A2#FFFFFF#000000##FFFFFF
##5727A21.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#414863
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5727a2;
/* rgb */ color: rgb(87, 39, 162);
/* oklch */ color: oklch(41.5% 0.183 294.8);
Tailwind
colors: {
  custom: {
    50: '#8e66bf',
    500: '#5727a2',
    950: '#000000',
  },
}
SCSS
$custom: #5727a2;
$custom-light: #8e66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5727a2",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 263.415,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41507,
    "c": 0.18322,
    "h": 294.8
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#5727A2
secondary
#9DC164
accent
#E443A6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5727A2

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

Preview Lab → · Contrast checker → · Palette generator →

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