#A228A9#A228A9

#A228A9 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.2% C 0.211 H 325.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A228A9
RGBrgb(162, 40, 169)
HSLhsl(297, 62%, 41%)
HSVhsv(297, 76%, 66%)
CMYKcmyk(4.1%, 76.3%, 0%, 33.7%)
CIE-LABlab(41.32, 63.70, -42.79)
CIE-LCHlch(41.32, 76.73, 326.11°)
OKLaboklab(52.2% 0.1743 -0.1191)
OKLCHoklch(52.2% 0.211 325.6)
XYZxyz(22.8200, 12.0651, 38.6553)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A9 #2FA928
analogous
#6128A9 #A228A9 #A9286F
triadic
#A228A9 #A9A228 #28A9A2
tetradic
#A228A9 #A96128 #2FA928 #286FA9
square
#A228A9 #A96128 #2FA928 #286FA9
split-complementary
#A228A9 #6FA928 #28A961
monochromatic
#431146 #731C78 #A228A9 #C93DD1 #D76FDD

Accessibility & contrast

On white

6.15
#A228A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A228A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A9
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A9#FFFFFF#000000##FFFFFF
##A228A91.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AC
Deuteranopia (green-blind)
#4667A6
Tritanopia (blue-blind)
#A63F67
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a228a9;
/* rgb */ color: rgb(162, 40, 169);
/* oklch */ color: oklch(52.2% 0.211 325.6);
Tailwind
colors: {
  custom: {
    50: '#c170c3',
    500: '#a228a9',
    950: '#000000',
  },
}
SCSS
$custom: #a228a9;
$custom-light: #c170c3;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a9",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 296.744,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52202,
    "c": 0.21108,
    "h": 325.6
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#A228A9
secondary
#6EC469
accent
#E5434C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A9

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

Preview Lab → · Contrast checker → · Palette generator →

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