#8127A4#8127A4

#8127A4 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.195 H 314.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8127A4
RGBrgb(129, 39, 164)
HSLhsl(283, 62%, 40%)
HSVhsv(283, 76%, 64%)
CMYKcmyk(21.3%, 76.2%, 0%, 35.7%)
CIE-LABlab(35.59, 56.41, -49.27)
CIE-LCHlch(35.59, 74.90, 318.87°)
OKLaboklab(47% 0.1361 -0.1391)
OKLCHoklch(47% 0.195 314.4)
XYZxyz(16.4785, 8.7991, 35.9451)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8127A4 #4AA427
analogous
#4327A4 #8127A4 #A42789
triadic
#8127A4 #A48127 #27A481
tetradic
#8127A4 #A44327 #4AA427 #2789A4
square
#8127A4 #A44327 #4AA427 #2789A4
split-complementary
#8127A4 #89A427 #27A443
monochromatic
#330F41 #5A1B73 #8127A4 #A538D0 #BC6ADC

Accessibility & contrast

On white

7.61
#8127A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8127A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8127A4
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8127A4#FFFFFF#000000##FFFFFF
##8127A41.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)
#004FA7
Deuteranopia (green-blind)
#1F56A1
Tritanopia (blue-blind)
#7E4364
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8127a4;
/* rgb */ color: rgb(129, 39, 164);
/* oklch */ color: oklch(47.0% 0.195 314.4);
Tailwind
colors: {
  custom: {
    50: '#aa6bc0',
    500: '#8127a4',
    950: '#000000',
  },
}
SCSS
$custom: #8127a4;
$custom-light: #aa6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8127a4",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 283.2,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46995,
    "c": 0.19462,
    "h": 314.4
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#8127A4
secondary
#7FC265
accent
#E54370
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8127A4

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

Preview Lab → · Contrast checker → · Palette generator →

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