#8828A2#8828A2

#8828A2 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.194 H 318.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8828A2
RGBrgb(136, 40, 162)
HSLhsl(287, 60%, 40%)
HSVhsv(287, 75%, 64%)
CMYKcmyk(16%, 75.3%, 0%, 36.5%)
CIE-LABlab(36.67, 57.06, -46.28)
CIE-LCHlch(36.67, 73.46, 320.96°)
OKLaboklab(47.93% 0.1444 -0.1301)
OKLCHoklch(47.93% 0.194 318)
XYZxyz(17.4328, 9.3612, 35.0640)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8828A2 #42A228
analogous
#4B28A2 #8828A2 #A2287F
triadic
#8828A2 #A28828 #28A288
tetradic
#8828A2 #A24B28 #42A228 #287FA2
square
#8828A2 #A24B28 #42A228 #287FA2
split-complementary
#8828A2 #7FA228 #28A24B
monochromatic
#361040 #5F1C71 #8828A2 #AE39CE #C26ADA

Accessibility & contrast

On white

7.31
#8828A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8828A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8828A2
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8828A2#FFFFFF#000000##FFFFFF
##8828A21.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#2D599F
Tritanopia (blue-blind)
#874263
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8828a2;
/* rgb */ color: rgb(136, 40, 162);
/* oklch */ color: oklch(47.9% 0.194 318.0);
Tailwind
colors: {
  custom: {
    50: '#af6cbe',
    500: '#8828a2',
    950: '#000000',
  },
}
SCSS
$custom: #8828a2;
$custom-light: #af6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8828a2",
  "rgb": {
    "r": 136,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 287.213,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47933,
    "c": 0.19431,
    "h": 318
  },
  "luminance": 0.0936
}

Semantic roles & 50–950 ramp

primary
#8828A2
secondary
#79C165
accent
#E44466
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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