#A126A8#A126A8

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

Color values

HEX#A126A8
RGBrgb(161, 38, 168)
HSLhsl(297, 63%, 40%)
HSVhsv(297, 77%, 66%)
CMYKcmyk(4.2%, 77.4%, 0%, 34.1%)
CIE-LABlab(40.88, 63.93, -42.90)
CIE-LCHlch(40.88, 76.98, 326.14°)
OKLaboklab(51.84% 0.1749 -0.1194)
OKLCHoklch(51.84% 0.212 325.7)
XYZxyz(22.4585, 11.7920, 38.1314)
Luminance0.1179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A126A8 #2DA826
analogous
#6026A8 #A126A8 #A8266E
triadic
#A126A8 #A8A126 #26A8A1
tetradic
#A126A8 #A86026 #2DA826 #266EA8
square
#A126A8 #A86026 #2DA826 #266EA8
split-complementary
#A126A8 #6EA826 #26A860
monochromatic
#410F44 #711B76 #A126A8 #CA39D2 #D76BDE

Accessibility & contrast

On white

6.25
#A126A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A126A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A126A8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A126A8#FFFFFF#000000##FFFFFF
##A126A81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#A53E66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a126a8;
/* rgb */ color: rgb(161, 38, 168);
/* oklch */ color: oklch(51.8% 0.212 325.7);
Tailwind
colors: {
  custom: {
    50: '#c16fc2',
    500: '#a126a8',
    950: '#000000',
  },
}
SCSS
$custom: #a126a8;
$custom-light: #c16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a126a8",
  "rgb": {
    "r": 161,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 296.769,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51841,
    "c": 0.21178,
    "h": 325.7
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#A126A8
secondary
#6BC466
accent
#E6424B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A126A8

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

Preview Lab → · Contrast checker → · Palette generator →

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