#5728AC#5728AC

#5728AC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.193 H 292.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5728AC
RGBrgb(87, 40, 172)
HSLhsl(261, 62%, 42%)
HSVhsv(261, 77%, 67%)
CMYKcmyk(49.4%, 76.7%, 0%, 32.5%)
CIE-LABlab(30.69, 50.50, -62.31)
CIE-LCHlch(30.69, 80.20, 309.02°)
OKLaboklab(42.53% 0.0734 -0.1788)
OKLCHoklch(42.53% 0.193 292.3)
XYZxyz(12.1336, 6.5219, 39.6413)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728AC #7DAC28
analogous
#283BAC #5728AC #9928AC
triadic
#5728AC #AC5728 #28AC57
tetradic
#5728AC #AC283B #7DAC28 #28AC99
square
#5728AC #AC283B #7DAC28 #28AC99
split-complementary
#5728AC #AC9928 #3BAC28
monochromatic
#251149 #3E1C7A #5728AC #733FD2 #9771DE

Accessibility & contrast

On white

9.11
#5728AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5728AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728AC
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728AC#FFFFFF#000000##FFFFFF
##5728AC1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#3B4C69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5728ac;
/* rgb */ color: rgb(87, 40, 172);
/* oklch */ color: oklch(42.5% 0.193 292.3);
Tailwind
colors: {
  custom: {
    50: '#8f67c6',
    500: '#5728ac',
    950: '#000000',
  },
}
SCSS
$custom: #5728ac;
$custom-light: #8f67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5728ac",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 261.364,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42531,
    "c": 0.19333,
    "h": 292.3
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#5728AC
secondary
#A5C56B
accent
#E542AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5728AC

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

Preview Lab → · Contrast checker → · Palette generator →

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