#A126C7#A126C7

#A126C7 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.9% C 0.237 H 316.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#A126C7
RGBrgb(161, 38, 199)
HSLhsl(286, 68%, 46%)
HSVhsv(286, 81%, 78%)
CMYKcmyk(19.1%, 80.9%, 0%, 22%)
CIE-LABlab(42.90, 69.46, -57.92)
CIE-LCHlch(42.90, 90.44, 320.17°)
OKLaboklab(53.9% 0.1711 -0.1634)
OKLCHoklch(53.9% 0.237 316.3)
XYZxyz(25.6983, 13.0879, 55.1943)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A126C7 #4CC726
analogous
#5126C7 #A126C7 #C7269C
triadic
#A126C7 #C7A126 #26C7A1
tetradic
#A126C7 #C75126 #4CC726 #269CC7
square
#A126C7 #C75126 #4CC726 #269CC7
split-complementary
#A126C7 #9CC726 #26C751
monochromatic
#4E1260 #771C94 #A126C7 #BB4DDD #CF81E7

Accessibility & contrast

On white

5.81
#A126C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#A126C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A126C7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A126C7#FFFFFF#000000##FFFFFF
##A126C71.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#2469C4
Tritanopia (blue-blind)
#9E4D78
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a126c7;
/* rgb */ color: rgb(161, 38, 199);
/* oklch */ color: oklch(53.9% 0.237 316.3);
Tailwind
colors: {
  custom: {
    50: '#c271d9',
    500: '#a126c7',
    950: '#000000',
  },
}
SCSS
$custom: #a126c7;
$custom-light: #c271d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a126c7",
  "rgb": {
    "r": 161,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 285.839,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53901,
    "c": 0.23658,
    "h": 316.3
  },
  "luminance": 0.13087
}

Semantic roles & 50–950 ramp

primary
#A126C7
secondary
#8ECF79
accent
#EB3D66
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A126C7

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

Preview Lab → · Contrast checker → · Palette generator →

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