#5828B0#5828B0

#5828B0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.198 H 291.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5828B0
RGBrgb(88, 40, 176)
HSLhsl(261, 63%, 42%)
HSVhsv(261, 77%, 69%)
CMYKcmyk(50%, 77.3%, 0%, 31%)
CIE-LABlab(31.18, 51.72, -63.90)
CIE-LCHlch(31.18, 82.21, 308.99°)
OKLaboklab(43.01% 0.0738 -0.1835)
OKLCHoklch(43.01% 0.198 291.9)
XYZxyz(12.6176, 6.7264, 41.6994)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828B0 #80B028
analogous
#283CB0 #5828B0 #9C28B0
triadic
#5828B0 #B05828 #28B058
tetradic
#5828B0 #B0283C #80B028 #28B09C
square
#5828B0 #B0283C #80B028 #28B09C
split-complementary
#5828B0 #B09C28 #3CB028
monochromatic
#26114C #3F1D7E #5828B0 #7541D4 #9973DF

Accessibility & contrast

On white

8.95
#5828B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5828B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5828B0
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828B0#FFFFFF#000000##FFFFFF
##5828B01.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#3B4E6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5828b0;
/* rgb */ color: rgb(88, 40, 176);
/* oklch */ color: oklch(43.0% 0.198 291.9);
Tailwind
colors: {
  custom: {
    50: '#9068c9',
    500: '#5828b0',
    950: '#000000',
  },
}
SCSS
$custom: #5828b0;
$custom-light: #9068c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5828b0",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 261.176,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43008,
    "c": 0.19778,
    "h": 291.9
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#5828B0
secondary
#A7C66D
accent
#E642AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5828B0

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

Preview Lab → · Contrast checker → · Palette generator →

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