#5828A2#5828A2

#5828A2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.182 H 295.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5828A2
RGBrgb(88, 40, 162)
HSLhsl(264, 60%, 40%)
HSVhsv(264, 75%, 64%)
CMYKcmyk(45.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(29.91, 47.98, -57.55)
CIE-LCHlch(29.91, 74.93, 309.82°)
OKLaboklab(41.74% 0.0776 -0.1649)
OKLCHoklch(41.74% 0.182 295.2)
XYZxyz(11.3031, 6.2006, 34.7767)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828A2 #72A228
analogous
#2835A2 #5828A2 #9528A2
triadic
#5828A2 #A25828 #28A258
tetradic
#5828A2 #A22835 #72A228 #28A295
square
#5828A2 #A22835 #72A228 #28A295
split-complementary
#5828A2 #A29528 #35A228
monochromatic
#231040 #3D1C71 #5828A2 #7439CE #966ADA

Accessibility & contrast

On white

9.37
#5828A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5828A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5828A2
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828A2#FFFFFF#000000##FFFFFF
##5828A21.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#434863
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5828a2;
/* rgb */ color: rgb(88, 40, 162);
/* oklch */ color: oklch(41.7% 0.182 295.2);
Tailwind
colors: {
  custom: {
    50: '#8e67bf',
    500: '#5828a2',
    950: '#000000',
  },
}
SCSS
$custom: #5828a2;
$custom-light: #8e67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5828a2",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 263.607,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41735,
    "c": 0.18221,
    "h": 295.2
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#5828A2
secondary
#9DC165
accent
#E444A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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