#8127A2#8127A2

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

Color values

HEX#8127A2
RGBrgb(129, 39, 162)
HSLhsl(284, 61%, 39%)
HSVhsv(284, 76%, 64%)
CMYKcmyk(20.4%, 75.9%, 0%, 36.5%)
CIE-LABlab(35.45, 56.00, -48.29)
CIE-LCHlch(35.45, 73.95, 319.23°)
OKLaboklab(46.85% 0.1364 -0.1362)
OKLCHoklch(46.85% 0.193 315)
XYZxyz(16.2993, 8.7274, 35.0014)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8127A2 #48A227
analogous
#4327A2 #8127A2 #A22786
triadic
#8127A2 #A28127 #27A281
tetradic
#8127A2 #A24327 #48A227 #2786A2
square
#8127A2 #A24327 #48A227 #2786A2
split-complementary
#8127A2 #86A227 #27A243
monochromatic
#320F3F #5A1B71 #8127A2 #A637CF #BC69DB

Accessibility & contrast

On white

7.65
#8127A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8127A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8127A2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8127A2#FFFFFF#000000##FFFFFF
##8127A21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#22569F
Tritanopia (blue-blind)
#7E4263
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8127a2;
/* rgb */ color: rgb(129, 39, 162);
/* oklch */ color: oklch(46.9% 0.193 315.0);
Tailwind
colors: {
  custom: {
    50: '#aa6bbe',
    500: '#8127a2',
    950: '#000000',
  },
}
SCSS
$custom: #8127a2;
$custom-light: #aa6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8127a2",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 283.902,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46852,
    "c": 0.19279,
    "h": 315
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#8127A2
secondary
#7DC164
accent
#E4436F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8127A2

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

Preview Lab → · Contrast checker → · Palette generator →

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