#A226A8#A226A8

#A226A8 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.212 H 326.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A226A8
RGBrgb(162, 38, 168)
HSLhsl(297, 63%, 40%)
HSVhsv(297, 77%, 66%)
CMYKcmyk(3.6%, 77.4%, 0%, 34.1%)
CIE-LABlab(41.05, 64.13, -42.62)
CIE-LCHlch(41.05, 77.00, 326.39°)
OKLaboklab(51.99% 0.176 -0.1186)
OKLCHoklch(51.99% 0.212 326)
XYZxyz(22.6608, 11.8963, 38.1409)
Luminance0.1190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A226A8 #2CA826
analogous
#6126A8 #A226A8 #A8266D
triadic
#A226A8 #A8A226 #26A8A2
tetradic
#A226A8 #A86126 #2CA826 #266DA8
square
#A226A8 #A86126 #2CA826 #266DA8
split-complementary
#A226A8 #6DA826 #26A861
monochromatic
#420F44 #721B76 #A226A8 #CB39D2 #D86BDE

Accessibility & contrast

On white

6.21
#A226A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A226A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A226A8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A226A8#FFFFFF#000000##FFFFFF
##A226A81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a226a8;
/* rgb */ color: rgb(162, 38, 168);
/* oklch */ color: oklch(52.0% 0.212 326.0);
Tailwind
colors: {
  custom: {
    50: '#c16fc2',
    500: '#a226a8',
    950: '#000000',
  },
}
SCSS
$custom: #a226a8;
$custom-light: #c16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a226a8",
  "rgb": {
    "r": 162,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 297.231,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51992,
    "c": 0.21221,
    "h": 326
  },
  "luminance": 0.11895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A226A8

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

Preview Lab → · Contrast checker → · Palette generator →

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