#A226A5#A226A5

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

Color values

HEX#A226A5
RGBrgb(162, 38, 165)
HSLhsl(299, 63%, 40%)
HSVhsv(299, 77%, 65%)
CMYKcmyk(1.8%, 77%, 0%, 35.3%)
CIE-LABlab(40.87, 63.63, -41.11)
CIE-LCHlch(40.87, 75.75, 327.13°)
OKLaboklab(51.81% 0.1761 -0.1142)
OKLCHoklch(51.81% 0.21 327)
XYZxyz(22.3846, 11.7858, 36.6859)
Luminance0.1178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A226A5 #29A526
analogous
#6326A5 #A226A5 #A52668
triadic
#A226A5 #A5A226 #26A5A2
tetradic
#A226A5 #A56326 #29A526 #2668A5
square
#A226A5 #A56326 #29A526 #2668A5
split-complementary
#A226A5 #68A526 #26A563
monochromatic
#400F42 #711B73 #A226A5 #CD37D1 #DA69DC

Accessibility & contrast

On white

6.26
#A226A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A226A5
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A226A5#FFFFFF#000000##FFFFFF
##A226A51.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4766A2
Tritanopia (blue-blind)
#A73C65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a226a5;
/* rgb */ color: rgb(162, 38, 165);
/* oklch */ color: oklch(51.8% 0.210 327.0);
Tailwind
colors: {
  custom: {
    50: '#c16fc0',
    500: '#a226a5',
    950: '#000000',
  },
}
SCSS
$custom: #a226a5;
$custom-light: #c16fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#a226a5",
  "rgb": {
    "r": 162,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 298.583,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51809,
    "c": 0.2099,
    "h": 327
  },
  "luminance": 0.11784
}

Semantic roles & 50–950 ramp

primary
#A226A5
secondary
#67C364
accent
#E64246
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A226A5

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

Preview Lab → · Contrast checker → · Palette generator →

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