#5728A3#5728A3

#5728A3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.183 H 294.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5728A3
RGBrgb(87, 40, 163)
HSLhsl(263, 61%, 40%)
HSVhsv(263, 75%, 64%)
CMYKcmyk(46.6%, 75.5%, 0%, 36.1%)
CIE-LABlab(29.88, 48.08, -58.21)
CIE-LCHlch(29.88, 75.50, 309.55°)
OKLaboklab(41.71% 0.0758 -0.1668)
OKLCHoklch(41.71% 0.183 294.4)
XYZxyz(11.2983, 6.1878, 35.2423)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728A3 #74A328
analogous
#2836A3 #5728A3 #9528A3
triadic
#5728A3 #A35728 #28A357
tetradic
#5728A3 #A32836 #74A328 #28A395
square
#5728A3 #A32836 #74A328 #28A395
split-complementary
#5728A3 #A39528 #36A328
monochromatic
#231041 #3D1C72 #5728A3 #733ACF #966BDB

Accessibility & contrast

On white

9.39
#5728A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5728A3
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728A3#FFFFFF#000000##FFFFFF
##5728A31.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#414964
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5728a3;
/* rgb */ color: rgb(87, 40, 163);
/* oklch */ color: oklch(41.7% 0.183 294.4);
Tailwind
colors: {
  custom: {
    50: '#8e67bf',
    500: '#5728a3',
    950: '#000000',
  },
}
SCSS
$custom: #5728a3;
$custom-light: #8e67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5728a3",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 262.927,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.18326,
    "h": 294.4
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5728A3

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

Preview Lab → · Contrast checker → · Palette generator →

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