#5728B1#5728B1

#5728B1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.199 H 291.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5728B1
RGBrgb(87, 40, 177)
HSLhsl(261, 63%, 43%)
HSVhsv(261, 77%, 69%)
CMYKcmyk(50.8%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.16, 51.84, -64.54)
CIE-LCHlch(31.16, 82.78, 308.78°)
OKLaboklab(43% 0.072 -0.1854)
OKLCHoklch(43% 0.199 291.2)
XYZxyz(12.6228, 6.7176, 42.2180)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728B1 #82B128
analogous
#283DB1 #5728B1 #9C28B1
triadic
#5728B1 #B15728 #28B157
tetradic
#5728B1 #B1283D #82B128 #28B19C
square
#5728B1 #B1283D #82B128 #28B19C
split-complementary
#5728B1 #B19C28 #3DB128
monochromatic
#26114D #3E1D7F #5728B1 #7442D4 #9974E0

Accessibility & contrast

On white

8.96
#5728B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5728B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728B1
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728B1#FFFFFF#000000##FFFFFF
##5728B11.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#384E6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5728b1;
/* rgb */ color: rgb(87, 40, 177);
/* oklch */ color: oklch(43.0% 0.199 291.2);
Tailwind
colors: {
  custom: {
    50: '#9068c9',
    500: '#5728b1',
    950: '#000000',
  },
}
SCSS
$custom: #5728b1;
$custom-light: #9068c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5728b1",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 260.584,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.19888,
    "h": 291.2
  },
  "luminance": 0.06718
}

Semantic roles & 50–950 ramp

primary
#5728B1
secondary
#A8C76E
accent
#E642AE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5728B1

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

Preview Lab → · Contrast checker → · Palette generator →

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