#A226A7#A226A7

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

Color values

HEX#A226A7
RGBrgb(162, 38, 167)
HSLhsl(298, 63%, 40%)
HSVhsv(298, 77%, 65%)
CMYKcmyk(3%, 77.2%, 0%, 34.5%)
CIE-LABlab(40.99, 63.96, -42.12)
CIE-LCHlch(40.99, 76.58, 326.63°)
OKLaboklab(51.93% 0.176 -0.1171)
OKLCHoklch(51.93% 0.211 326.4)
XYZxyz(22.5680, 11.8592, 37.6521)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A226A7 #2BA726
analogous
#6126A7 #A226A7 #A7266C
triadic
#A226A7 #A7A226 #26A7A2
tetradic
#A226A7 #A76126 #2BA726 #266CA7
square
#A226A7 #A76126 #2BA726 #266CA7
split-complementary
#A226A7 #6CA726 #26A761
monochromatic
#410F43 #721B75 #A226A7 #CC38D2 #D96ADD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A226A7#FFFFFF#000000##FFFFFF
##A226A71.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)
#0057AA
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#A63D66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a226a7;
/* rgb */ color: rgb(162, 38, 167);
/* oklch */ color: oklch(51.9% 0.211 326.4);
Tailwind
colors: {
  custom: {
    50: '#c16fc2',
    500: '#a226a7',
    950: '#000000',
  },
}
SCSS
$custom: #a226a7;
$custom-light: #c16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a226a7",
  "rgb": {
    "r": 162,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 297.674,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51931,
    "c": 0.21144,
    "h": 326.4
  },
  "luminance": 0.11858
}

Semantic roles & 50–950 ramp

primary
#A226A7
secondary
#69C365
accent
#E64248
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A226A7

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

Preview Lab → · Contrast checker → · Palette generator →

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