#A227A1#A227A1

#A227A1 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.206 H 328.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#A227A1
RGBrgb(162, 39, 161)
HSLhsl(300, 61%, 39%)
HSVhsv(300, 76%, 64%)
CMYKcmyk(0%, 75.9%, 0.6%, 36.5%)
CIE-LABlab(40.75, 62.67, -38.91)
CIE-LCHlch(40.75, 73.77, 328.16°)
OKLaboklab(51.65% 0.1754 -0.1078)
OKLCHoklch(51.65% 0.206 328.4)
XYZxyz(22.0586, 11.7073, 34.8092)
Luminance0.1171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A1 #27A228
analogous
#6627A2 #A227A1 #A22764
triadic
#A227A1 #A1A227 #27A1A2
tetradic
#A227A1 #A26627 #27A228 #2764A2
square
#A227A1 #A26627 #27A228 #2764A2
split-complementary
#A227A1 #64A227 #27A266
monochromatic
#3F0F3F #711B70 #A227A1 #CF37CE #DB69DA

Accessibility & contrast

On white

6.29
#A227A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A227A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A1
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A1#FFFFFF#000000##FFFFFF
##A227A11.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B56A4
Deuteranopia (green-blind)
#4A669E
Tritanopia (blue-blind)
#A73B63
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a227a1;
/* rgb */ color: rgb(162, 39, 161);
/* oklch */ color: oklch(51.6% 0.206 328.4);
Tailwind
colors: {
  custom: {
    50: '#c16fbd',
    500: '#a227a1',
    950: '#000000',
  },
}
SCSS
$custom: #a227a1;
$custom-light: #c16fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a1",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 300.488,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51645,
    "c": 0.20586,
    "h": 328.4
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#A227A1
secondary
#64C165
accent
#E44543
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A1

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

Preview Lab → · Contrast checker → · Palette generator →

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