#5728A2#5728A2

#5728A2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.182 H 294.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5728A2
RGBrgb(87, 40, 162)
HSLhsl(263, 60%, 40%)
HSVhsv(263, 75%, 64%)
CMYKcmyk(46.3%, 75.3%, 0%, 36.5%)
CIE-LABlab(29.79, 47.81, -57.75)
CIE-LCHlch(29.79, 74.98, 309.62°)
OKLaboklab(41.62% 0.0761 -0.1655)
OKLCHoklch(41.62% 0.182 294.7)
XYZxyz(11.2091, 6.1521, 34.7723)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728A2 #73A228
analogous
#2836A2 #5728A2 #9428A2
triadic
#5728A2 #A25728 #28A257
tetradic
#5728A2 #A22836 #73A228 #28A294
square
#5728A2 #A22836 #73A228 #28A294
split-complementary
#5728A2 #A29428 #36A228
monochromatic
#221040 #3D1C71 #5728A2 #7239CE #956ADA

Accessibility & contrast

On white

9.42
#5728A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5728A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728A2
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728A2#FFFFFF#000000##FFFFFF
##5728A21.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.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: #5728a2;
/* rgb */ color: rgb(87, 40, 162);
/* oklch */ color: oklch(41.6% 0.182 294.7);
Tailwind
colors: {
  custom: {
    50: '#8e67bf',
    500: '#5728a2',
    950: '#000000',
  },
}
SCSS
$custom: #5728a2;
$custom-light: #8e67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5728a2",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 263.115,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.18214,
    "h": 294.7
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#5728A2
secondary
#9DC165
accent
#E444A6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5728A2

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

Preview Lab → · Contrast checker → · Palette generator →

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