#A227A6#A227A6

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

Color values

HEX#A227A6
RGBrgb(162, 39, 166)
HSLhsl(298, 62%, 40%)
HSVhsv(298, 77%, 65%)
CMYKcmyk(2.4%, 76.5%, 0%, 34.9%)
CIE-LABlab(41.04, 63.50, -41.45)
CIE-LCHlch(41.04, 75.83, 326.86°)
OKLaboklab(51.94% 0.1752 -0.1152)
OKLCHoklch(51.94% 0.21 326.7)
XYZxyz(22.5084, 11.8872, 37.1779)
Luminance0.1189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A6 #2BA627
analogous
#6227A6 #A227A6 #A6276B
triadic
#A227A6 #A6A227 #27A6A2
tetradic
#A227A6 #A66227 #2BA627 #276BA6
square
#A227A6 #A66227 #2BA627 #276BA6
split-complementary
#A227A6 #6BA627 #27A662
monochromatic
#411043 #721B74 #A227A6 #CC3AD1 #D96BDC

Accessibility & contrast

On white

6.22
#A227A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A227A6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A6#FFFFFF#000000##FFFFFF
##A227A61.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a227a6;
/* rgb */ color: rgb(162, 39, 166);
/* oklch */ color: oklch(51.9% 0.210 326.7);
Tailwind
colors: {
  custom: {
    50: '#c170c1',
    500: '#a227a6',
    950: '#000000',
  },
}
SCSS
$custom: #a227a6;
$custom-light: #c170c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a6",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 298.11,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51944,
    "c": 0.20971,
    "h": 326.7
  },
  "luminance": 0.11886
}

Semantic roles & 50–950 ramp

primary
#A227A6
secondary
#69C366
accent
#E54348
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A6

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

Preview Lab → · Contrast checker → · Palette generator →

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