#5728A4#5728A4

#5728A4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.184 H 294.2°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5728A4
RGBrgb(87, 40, 164)
HSLhsl(263, 61%, 40%)
HSVhsv(263, 76%, 64%)
CMYKcmyk(47%, 75.6%, 0%, 35.7%)
CIE-LABlab(29.97, 48.35, -58.67)
CIE-LCHlch(29.97, 76.03, 309.49°)
OKLaboklab(41.8% 0.0755 -0.1682)
OKLCHoklch(41.8% 0.184 294.2)
XYZxyz(11.3883, 6.2238, 35.7160)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728A4 #75A428
analogous
#2837A4 #5728A4 #9528A4
triadic
#5728A4 #A45728 #28A457
tetradic
#5728A4 #A42837 #75A428 #28A495
square
#5728A4 #A42837 #75A428 #28A495
split-complementary
#5728A4 #A49528 #37A428
monochromatic
#231042 #3D1C73 #5728A4 #733ACF #966BDB

Accessibility & contrast

On white

9.35
#5728A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5728A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728A4
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728A4#FFFFFF#000000##FFFFFF
##5728A41.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#404964
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5728a4;
/* rgb */ color: rgb(87, 40, 164);
/* oklch */ color: oklch(41.8% 0.184 294.2);
Tailwind
colors: {
  custom: {
    50: '#8e67c0',
    500: '#5728a4',
    950: '#000000',
  },
}
SCSS
$custom: #5728a4;
$custom-light: #8e67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5728a4",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 262.742,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.18438,
    "h": 294.2
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#5728A4
secondary
#9FC166
accent
#E444A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5728A4

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

Preview Lab → · Contrast checker → · Palette generator →

#5728A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva