#A227A2#A227A2

#A227A2 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.207 H 328.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A227A2
RGBrgb(162, 39, 162)
HSLhsl(300, 61%, 39%)
HSVhsv(300, 76%, 64%)
CMYKcmyk(0%, 75.9%, 0%, 36.5%)
CIE-LABlab(40.80, 62.83, -39.42)
CIE-LCHlch(40.80, 74.18, 327.89°)
OKLaboklab(51.7% 0.1754 -0.1093)
OKLCHoklch(51.7% 0.207 328.1)
XYZxyz(22.1471, 11.7427, 35.2755)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A2 #27A227
analogous
#6527A2 #A227A2 #A22765
triadic
#A227A2 #A2A227 #27A2A2
tetradic
#A227A2 #A26527 #27A227 #2765A2
square
#A227A2 #A26527 #27A227 #2765A2
split-complementary
#A227A2 #65A227 #27A265
monochromatic
#3F0F3F #711B71 #A227A2 #CF37CF #DB69DB

Accessibility & contrast

On white

6.27
#A227A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A227A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A2#FFFFFF#000000##FFFFFF
##A227A21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0856A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#A73B63
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a227a2;
/* rgb */ color: rgb(162, 39, 162);
/* oklch */ color: oklch(51.7% 0.207 328.1);
Tailwind
colors: {
  custom: {
    50: '#c16fbe',
    500: '#a227a2',
    950: '#000000',
  },
}
SCSS
$custom: #a227a2;
$custom-light: #c16fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a2",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 300,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51704,
    "c": 0.20663,
    "h": 328.1
  },
  "luminance": 0.11741
}

Semantic roles & 50–950 ramp

primary
#A227A2
secondary
#64C164
accent
#E44343
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A2

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

Preview Lab → · Contrast checker → · Palette generator →

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