#A228A5#A228A5

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

Color values

HEX#A228A5
RGBrgb(162, 40, 165)
HSLhsl(299, 61%, 40%)
HSVhsv(299, 76%, 65%)
CMYKcmyk(1.8%, 75.8%, 0%, 35.3%)
CIE-LABlab(41.08, 63.02, -40.78)
CIE-LCHlch(41.08, 75.06, 327.10°)
OKLaboklab(51.96% 0.1744 -0.1132)
OKLCHoklch(51.96% 0.208 327)
XYZxyz(22.4503, 11.9172, 36.7078)
Luminance0.1192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A5 #2BA528
analogous
#6328A5 #A228A5 #A52869
triadic
#A228A5 #A5A228 #28A5A2
tetradic
#A228A5 #A56328 #2BA528 #2869A5
square
#A228A5 #A56328 #2BA528 #2869A5
split-complementary
#A228A5 #69A528 #28A563
monochromatic
#411042 #721C74 #A228A5 #CC3BCF #D96CDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A228A5#FFFFFF#000000##FFFFFF
##A228A51.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)
#0157A8
Deuteranopia (green-blind)
#4866A2
Tritanopia (blue-blind)
#A73D65
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a228a5;
/* rgb */ color: rgb(162, 40, 165);
/* oklch */ color: oklch(52.0% 0.208 327.0);
Tailwind
colors: {
  custom: {
    50: '#c170c0',
    500: '#a228a5',
    950: '#000000',
  },
}
SCSS
$custom: #a228a5;
$custom-light: #c170c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a5",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 298.56,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51959,
    "c": 0.20796,
    "h": 327
  },
  "luminance": 0.11916
}

Semantic roles & 50–950 ramp

primary
#A228A5
secondary
#69C267
accent
#E44448
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A5

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

Preview Lab → · Contrast checker → · Palette generator →

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