#5828AC#5828AC

#5828AC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.193 H 292.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5828AC
RGBrgb(88, 40, 172)
HSLhsl(262, 62%, 42%)
HSVhsv(262, 77%, 67%)
CMYKcmyk(48.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(30.81, 50.65, -62.11)
CIE-LCHlch(30.81, 80.14, 309.20°)
OKLaboklab(42.64% 0.0749 -0.1782)
OKLCHoklch(42.64% 0.193 292.8)
XYZxyz(12.2276, 6.5704, 39.6457)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828AC #7CAC28
analogous
#283AAC #5828AC #9A28AC
triadic
#5828AC #AC5828 #28AC58
tetradic
#5828AC #AC283A #7CAC28 #28AC9A
square
#5828AC #AC283A #7CAC28 #28AC9A
split-complementary
#5828AC #AC9A28 #3AAC28
monochromatic
#251149 #3F1C7A #5828AC #743FD2 #9871DE

Accessibility & contrast

On white

9.07
#5828AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5828AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5828AC
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828AC#FFFFFF#000000##FFFFFF
##5828AC1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5828ac;
/* rgb */ color: rgb(88, 40, 172);
/* oklch */ color: oklch(42.6% 0.193 292.8);
Tailwind
colors: {
  custom: {
    50: '#9067c6',
    500: '#5828ac',
    950: '#000000',
  },
}
SCSS
$custom: #5828ac;
$custom-light: #9067c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5828ac",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 261.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42639,
    "c": 0.19335,
    "h": 292.8
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#5828AC
secondary
#A4C56B
accent
#E542AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5828AC

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

Preview Lab → · Contrast checker → · Palette generator →

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