#5828B1#5828B1

#5828B1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.199 H 291.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5828B1
RGBrgb(88, 40, 177)
HSLhsl(261, 63%, 43%)
HSVhsv(261, 77%, 69%)
CMYKcmyk(50.3%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.27, 51.99, -64.35)
CIE-LCHlch(31.27, 82.72, 308.94°)
OKLaboklab(43.1% 0.0735 -0.1848)
OKLCHoklch(43.1% 0.199 291.7)
XYZxyz(12.7169, 6.7661, 42.2224)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828B1 #81B128
analogous
#283CB1 #5828B1 #9D28B1
triadic
#5828B1 #B15828 #28B158
tetradic
#5828B1 #B1283C #81B128 #28B19D
square
#5828B1 #B1283C #81B128 #28B19D
split-complementary
#5828B1 #B19D28 #3CB128
monochromatic
#26114D #3F1D7F #5828B1 #7542D4 #9A74E0

Accessibility & contrast

On white

8.92
#5828B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5828B1
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828B1#FFFFFF#000000##FFFFFF
##5828B11.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#3A4E6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5828b1;
/* rgb */ color: rgb(88, 40, 177);
/* oklch */ color: oklch(43.1% 0.199 291.7);
Tailwind
colors: {
  custom: {
    50: '#9068c9',
    500: '#5828b1',
    950: '#000000',
  },
}
SCSS
$custom: #5828b1;
$custom-light: #9068c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5828b1",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 261.022,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43101,
    "c": 0.19888,
    "h": 291.7
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5828B1

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

Preview Lab → · Contrast checker → · Palette generator →

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