#5728E2#5728E2

#5728E2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.8% C 0.252 H 282.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5728E2
RGBrgb(87, 40, 226)
HSLhsl(255, 76%, 52%)
HSVhsv(255, 82%, 89%)
CMYKcmyk(61.5%, 82.3%, 0%, 11.4%)
CIE-LABlab(36.05, 64.96, -85.07)
CIE-LCHlch(36.05, 107.04, 307.36°)
OKLaboklab(47.84% 0.0563 -0.2453)
OKLCHoklch(47.84% 0.252 282.9)
XYZxyz(18.4125, 9.0335, 72.7101)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728E2 #B3E228
analogous
#2856E2 #5728E2 #B428E2
triadic
#5728E2 #E25728 #28E257
tetradic
#5728E2 #E22856 #B3E228 #28E2B4
square
#5728E2 #E22856 #B3E228 #28E2B4
split-complementary
#5728E2 #E2B428 #56E228
monochromatic
#2D117F #4018B4 #5728E2 #815EE9 #AB94F1

Accessibility & contrast

On white

7.48
#5728E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5728E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728E2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728E2#FFFFFF#000000##FFFFFF
##5728E21.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006388
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5728e2;
/* rgb */ color: rgb(87, 40, 226);
/* oklch */ color: oklch(47.8% 0.252 282.9);
Tailwind
colors: {
  custom: {
    50: '#986bed',
    500: '#5728e2',
    950: '#000000',
  },
}
SCSS
$custom: #5728e2;
$custom-light: #986bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5728e2",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 255.161,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47842,
    "c": 0.25173,
    "h": 282.9
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#5728E2
secondary
#C7DC8A
accent
#F335C3
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5728E2

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

Preview Lab → · Contrast checker → · Palette generator →

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