#8128A2#8128A2

#8128A2 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.192 H 315.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8128A2
RGBrgb(129, 40, 162)
HSLhsl(284, 60%, 40%)
HSVhsv(284, 75%, 64%)
CMYKcmyk(20.4%, 75.3%, 0%, 36.5%)
CIE-LABlab(35.58, 55.63, -48.08)
CIE-LCHlch(35.58, 73.53, 319.16°)
OKLaboklab(46.94% 0.1355 -0.1356)
OKLCHoklch(46.94% 0.192 315)
XYZxyz(16.3326, 8.7939, 35.0125)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8128A2 #49A228
analogous
#4428A2 #8128A2 #A22886
triadic
#8128A2 #A28128 #28A281
tetradic
#8128A2 #A24428 #49A228 #2886A2
square
#8128A2 #A24428 #49A228 #2886A2
split-complementary
#8128A2 #86A228 #28A244
monochromatic
#331040 #5A1C71 #8128A2 #A639CE #BC6ADA

Accessibility & contrast

On white

7.61
#8128A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8128A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8128A2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8128A2#FFFFFF#000000##FFFFFF
##8128A21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#23569F
Tritanopia (blue-blind)
#7E4363
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8128a2;
/* rgb */ color: rgb(129, 40, 162);
/* oklch */ color: oklch(46.9% 0.192 315.0);
Tailwind
colors: {
  custom: {
    50: '#aa6bbe',
    500: '#8128a2',
    950: '#000000',
  },
}
SCSS
$custom: #8128a2;
$custom-light: #aa6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8128a2",
  "rgb": {
    "r": 129,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 283.77,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46944,
    "c": 0.1917,
    "h": 315
  },
  "luminance": 0.08793
}

Semantic roles & 50–950 ramp

primary
#8128A2
secondary
#7EC165
accent
#E4446F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8128A2

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

Preview Lab → · Contrast checker → · Palette generator →

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