#A227A0#A227A0

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

Color values

HEX#A227A0
RGBrgb(162, 39, 160)
HSLhsl(301, 61%, 39%)
HSVhsv(301, 76%, 64%)
CMYKcmyk(0%, 75.9%, 1.2%, 36.5%)
CIE-LABlab(40.69, 62.51, -38.40)
CIE-LCHlch(40.69, 73.36, 328.43°)
OKLaboklab(51.59% 0.1754 -0.1063)
OKLCHoklch(51.59% 0.205 328.8)
XYZxyz(21.9708, 11.6721, 34.3467)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A0 #27A229
analogous
#6727A2 #A227A0 #A22762
triadic
#A227A0 #A0A227 #27A0A2
tetradic
#A227A0 #A26727 #27A229 #2762A2
square
#A227A0 #A26727 #27A229 #2762A2
split-complementary
#A227A0 #62A227 #27A267
monochromatic
#3F0F3F #711B6F #A227A0 #CF37CC #DB69D9

Accessibility & contrast

On white

6.30
#A227A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A227A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A0
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A0#FFFFFF#000000##FFFFFF
##A227A01.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E56A3
Deuteranopia (green-blind)
#4B669D
Tritanopia (blue-blind)
#A83A62
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a227a0;
/* rgb */ color: rgb(162, 39, 160);
/* oklch */ color: oklch(51.6% 0.205 328.8);
Tailwind
colors: {
  custom: {
    50: '#c16fbc',
    500: '#a227a0',
    950: '#000000',
  },
}
SCSS
$custom: #a227a0;
$custom-light: #c16fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a0",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 300.976,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51586,
    "c": 0.20511,
    "h": 328.8
  },
  "luminance": 0.1167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A227A0

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

Preview Lab → · Contrast checker → · Palette generator →

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