#5728AF#5728AF

#5728AF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.197 H 291.7°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5728AF
RGBrgb(87, 40, 175)
HSLhsl(261, 63%, 42%)
HSVhsv(261, 77%, 69%)
CMYKcmyk(50.3%, 77.1%, 0%, 31.4%)
CIE-LABlab(30.97, 51.30, -63.65)
CIE-LCHlch(30.97, 81.75, 308.87°)
OKLaboklab(42.81% 0.0726 -0.1828)
OKLCHoklch(42.81% 0.197 291.7)
XYZxyz(12.4249, 6.6385, 41.1758)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5728AF #80AF28
analogous
#283CAF #5728AF #9B28AF
triadic
#5728AF #AF5728 #28AF57
tetradic
#5728AF #AF283C #80AF28 #28AF9B
square
#5728AF #AF283C #80AF28 #28AF9B
split-complementary
#5728AF #AF9B28 #3CAF28
monochromatic
#25114B #3E1D7D #5728AF #7441D4 #9873DF

Accessibility & contrast

On white

9.02
#5728AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5728AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5728AF
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5728AF#FFFFFF#000000##FFFFFF
##5728AF1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#394E6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5728af;
/* rgb */ color: rgb(87, 40, 175);
/* oklch */ color: oklch(42.8% 0.197 291.7);
Tailwind
colors: {
  custom: {
    50: '#9068c8',
    500: '#5728af',
    950: '#000000',
  },
}
SCSS
$custom: #5728af;
$custom-light: #9068c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5728af",
  "rgb": {
    "r": 87,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 260.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42809,
    "c": 0.19667,
    "h": 291.7
  },
  "luminance": 0.06639
}

Semantic roles & 50–950 ramp

primary
#5728AF
secondary
#A7C66D
accent
#E642AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5728AF

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

Preview Lab → · Contrast checker → · Palette generator →

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