#A227A3#A227A3

#A227A3 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.207 H 327.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A227A3
RGBrgb(162, 39, 163)
HSLhsl(300, 61%, 40%)
HSVhsv(300, 76%, 64%)
CMYKcmyk(0.6%, 76.1%, 0%, 36.1%)
CIE-LABlab(40.86, 63.00, -39.93)
CIE-LCHlch(40.86, 74.59, 327.63°)
OKLaboklab(51.76% 0.1753 -0.1108)
OKLCHoklch(51.76% 0.207 327.7)
XYZxyz(22.2364, 11.7784, 35.7455)
Luminance0.1178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A3 #28A327
analogous
#6427A3 #A227A3 #A32766
triadic
#A227A3 #A3A227 #27A3A2
tetradic
#A227A3 #A36427 #28A327 #2766A3
square
#A227A3 #A36427 #28A327 #2766A3
split-complementary
#A227A3 #66A327 #27A364
monochromatic
#400F40 #711B72 #A227A3 #CE38CF #DA69DB

Accessibility & contrast

On white

6.26
#A227A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A227A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A3
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A3#FFFFFF#000000##FFFFFF
##A227A31.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0456A6
Deuteranopia (green-blind)
#4966A0
Tritanopia (blue-blind)
#A73C64
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a227a3;
/* rgb */ color: rgb(162, 39, 163);
/* oklch */ color: oklch(51.8% 0.207 327.7);
Tailwind
colors: {
  custom: {
    50: '#c16fbf',
    500: '#a227a3',
    950: '#000000',
  },
}
SCSS
$custom: #a227a3;
$custom-light: #c16fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a3",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 299.516,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51763,
    "c": 0.2074,
    "h": 327.7
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#A227A3
secondary
#65C164
accent
#E44345
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A3

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

Preview Lab → · Contrast checker → · Palette generator →

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