#A228A6#A228A6

#A228A6 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.209 H 326.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#A228A6
RGBrgb(162, 40, 166)
HSLhsl(298, 61%, 40%)
HSVhsv(298, 76%, 65%)
CMYKcmyk(2.4%, 75.9%, 0%, 34.9%)
CIE-LABlab(41.14, 63.19, -41.28)
CIE-LCHlch(41.14, 75.48, 326.84°)
OKLaboklab(52.02% 0.1744 -0.1147)
OKLCHoklch(52.02% 0.209 326.7)
XYZxyz(22.5416, 11.9537, 37.1890)
Luminance0.1195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A6 #2CA628
analogous
#6328A6 #A228A6 #A6286B
triadic
#A228A6 #A6A228 #28A6A2
tetradic
#A228A6 #A66328 #2CA628 #286BA6
square
#A228A6 #A66328 #2CA628 #286BA6
split-complementary
#A228A6 #6BA628 #28A663
monochromatic
#421043 #721C75 #A228A6 #CB3BD0 #D86DDC

Accessibility & contrast

On white

6.19
#A228A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A228A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A6
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A6#FFFFFF#000000##FFFFFF
##A228A61.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#4866A3
Tritanopia (blue-blind)
#A63E66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a228a6;
/* rgb */ color: rgb(162, 40, 166);
/* oklch */ color: oklch(52.0% 0.209 326.7);
Tailwind
colors: {
  custom: {
    50: '#c170c1',
    500: '#a228a6',
    950: '#000000',
  },
}
SCSS
$custom: #a228a6;
$custom-light: #c170c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a6",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 298.095,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5202,
    "c": 0.20873,
    "h": 326.7
  },
  "luminance": 0.11952
}

Semantic roles & 50–950 ramp

primary
#A228A6
secondary
#6AC267
accent
#E44449
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A6

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

Preview Lab → · Contrast checker → · Palette generator →

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