#5728D1#5728D1

#5728D1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.1% C 0.234 H 285.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5728D1
RGBrgb(87, 40, 209)
HSLhsl(257, 68%, 49%)
HSVhsv(257, 81%, 82%)
CMYKcmyk(58.4%, 80.9%, 0%, 18%)
CIE-LABlab(34.29, 60.44, -78.20)
CIE-LCHlch(34.29, 98.84, 307.70°)
OKLaboklab(46.11% 0.062 -0.2253)
OKLCHoklch(46.11% 0.234 285.4)
XYZxyz(16.1944, 8.1463, 61.0283)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728D1 #A2D128
analogous
#284ED1 #5728D1 #AC28D1
triadic
#5728D1 #D15728 #28D157
tetradic
#5728D1 #D1284E #A2D128 #28D1AC
square
#5728D1 #D1284E #A2D128 #28D1AC
split-complementary
#5728D1 #D1AC28 #4ED128
monochromatic
#2C146A #421E9E #5728D1 #7D57DF #A58BE9

Accessibility & contrast

On white

7.99
#5728D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5728D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728D1
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728D1#FFFFFF#000000##FFFFFF
##5728D11.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D6
Deuteranopia (green-blind)
#004BCE
Tritanopia (blue-blind)
#0D5C7E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5728d1;
/* rgb */ color: rgb(87, 40, 209);
/* oklch */ color: oklch(46.1% 0.234 285.4);
Tailwind
colors: {
  custom: {
    50: '#9569e1',
    500: '#5728d1',
    950: '#000000',
  },
}
SCSS
$custom: #5728d1;
$custom-light: #9569e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5728d1",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 256.686,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46109,
    "c": 0.23369,
    "h": 285.4
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#5728D1
secondary
#BCD382
accent
#EB3DBA
background
#FAF6FE
surface
#F3EBFC
border
#CDC6D5
text
#0F0715
muted
#7F7A84

Preview Lab

Preview with #5728D1

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

Preview Lab → · Contrast checker → · Palette generator →

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