#A127A8#A127A8

#A127A8 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.211 H 325.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A127A8
RGBrgb(161, 39, 168)
HSLhsl(297, 62%, 41%)
HSVhsv(297, 77%, 66%)
CMYKcmyk(4.2%, 76.8%, 0%, 34.1%)
CIE-LABlab(40.99, 63.63, -42.73)
CIE-LCHlch(40.99, 76.64, 326.11°)
OKLaboklab(51.92% 0.1741 -0.119)
OKLCHoklch(51.92% 0.211 325.6)
XYZxyz(22.4909, 11.8568, 38.1422)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A127A8 #2EA827
analogous
#6027A8 #A127A8 #A8276E
triadic
#A127A8 #A8A127 #27A8A1
tetradic
#A127A8 #A86027 #2EA827 #276EA8
square
#A127A8 #A86027 #2EA827 #276EA8
split-complementary
#A127A8 #6EA827 #27A860
monochromatic
#421045 #711B76 #A127A8 #C93BD1 #D76CDD

Accessibility & contrast

On white

6.23
#A127A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A127A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A127A8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A127A8#FFFFFF#000000##FFFFFF
##A127A81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4566A5
Tritanopia (blue-blind)
#A53E67
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a127a8;
/* rgb */ color: rgb(161, 39, 168);
/* oklch */ color: oklch(51.9% 0.211 325.6);
Tailwind
colors: {
  custom: {
    50: '#c170c2',
    500: '#a127a8',
    950: '#000000',
  },
}
SCSS
$custom: #a127a8;
$custom-light: #c170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a127a8",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 296.744,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51915,
    "c": 0.21082,
    "h": 325.6
  },
  "luminance": 0.11855
}

Semantic roles & 50–950 ramp

primary
#A127A8
secondary
#6CC367
accent
#E5424B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A127A8

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

Preview Lab → · Contrast checker → · Palette generator →

#A127A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva