#A227A9#A227A9

#A227A9 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.212 H 325.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A227A9
RGBrgb(162, 39, 169)
HSLhsl(297, 63%, 41%)
HSVhsv(297, 77%, 66%)
CMYKcmyk(4.1%, 76.9%, 0%, 33.7%)
CIE-LABlab(41.21, 64.00, -42.96)
CIE-LCHlch(41.21, 77.08, 326.13°)
OKLaboklab(52.13% 0.1751 -0.1196)
OKLCHoklch(52.13% 0.212 325.7)
XYZxyz(22.7868, 11.9985, 38.6442)
Luminance0.1200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A9 #2EA927
analogous
#6127A9 #A227A9 #A9276F
triadic
#A227A9 #A9A227 #27A9A2
tetradic
#A227A9 #A96127 #2EA927 #276FA9
square
#A227A9 #A96127 #2EA927 #276FA9
split-complementary
#A227A9 #6FA927 #27A961
monochromatic
#431046 #721C77 #A227A9 #CA3BD2 #D76DDD

Accessibility & contrast

On white

6.18
#A227A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A227A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A9#FFFFFF#000000##FFFFFF
##A227A91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a227a9;
/* rgb */ color: rgb(162, 39, 169);
/* oklch */ color: oklch(52.1% 0.212 325.7);
Tailwind
colors: {
  custom: {
    50: '#c170c3',
    500: '#a227a9',
    950: '#000000',
  },
}
SCSS
$custom: #a227a9;
$custom-light: #c170c3;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a9",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 296.769,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.21204,
    "h": 325.7
  },
  "luminance": 0.11997
}

Semantic roles & 50–950 ramp

primary
#A227A9
secondary
#6DC468
accent
#E6424B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A9

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

Preview Lab → · Contrast checker → · Palette generator →

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