#A126A7#A126A7

#A126A7 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.211 H 326.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A126A7
RGBrgb(161, 38, 167)
HSLhsl(297, 63%, 40%)
HSVhsv(297, 77%, 65%)
CMYKcmyk(3.6%, 77.2%, 0%, 34.5%)
CIE-LABlab(40.82, 63.76, -42.40)
CIE-LCHlch(40.82, 76.57, 326.38°)
OKLaboklab(51.78% 0.1749 -0.118)
OKLCHoklch(51.78% 0.211 326)
XYZxyz(22.3657, 11.7549, 37.6426)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A126A7 #2CA726
analogous
#6026A7 #A126A7 #A7266D
triadic
#A126A7 #A7A126 #26A7A1
tetradic
#A126A7 #A76026 #2CA726 #266DA7
square
#A126A7 #A76026 #2CA726 #266DA7
split-complementary
#A126A7 #6DA726 #26A760
monochromatic
#410F43 #711B75 #A126A7 #CB38D2 #D86ADD

Accessibility & contrast

On white

6.27
#A126A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A126A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A126A7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A126A7#FFFFFF#000000##FFFFFF
##A126A71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#4565A4
Tritanopia (blue-blind)
#A53D66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a126a7;
/* rgb */ color: rgb(161, 38, 167);
/* oklch */ color: oklch(51.8% 0.211 326.0);
Tailwind
colors: {
  custom: {
    50: '#c16fc2',
    500: '#a126a7',
    950: '#000000',
  },
}
SCSS
$custom: #a126a7;
$custom-light: #c16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a126a7",
  "rgb": {
    "r": 161,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 297.209,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.21101,
    "h": 326
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#A126A7
secondary
#6AC365
accent
#E64249
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A126A7

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

Preview Lab → · Contrast checker → · Palette generator →

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