#A227A8#A227A8

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

Color values

HEX#A227A8
RGBrgb(162, 39, 168)
HSLhsl(297, 62%, 41%)
HSVhsv(297, 77%, 66%)
CMYKcmyk(3.6%, 76.8%, 0%, 34.1%)
CIE-LABlab(41.15, 63.83, -42.46)
CIE-LCHlch(41.15, 76.66, 326.37°)
OKLaboklab(52.07% 0.1752 -0.1181)
OKLCHoklch(52.07% 0.211 326)
XYZxyz(22.6932, 11.9611, 38.1517)
Luminance0.1196 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A8 #2DA827
analogous
#6127A8 #A227A8 #A8276E
triadic
#A227A8 #A8A227 #27A8A2
tetradic
#A227A8 #A86127 #2DA827 #276EA8
square
#A227A8 #A86127 #2DA827 #276EA8
split-complementary
#A227A8 #6EA827 #27A861
monochromatic
#421045 #721B76 #A227A8 #CA3BD1 #D86CDD

Accessibility & contrast

On white

6.19
#A227A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A227A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A8#FFFFFF#000000##FFFFFF
##A227A81.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4666A5
Tritanopia (blue-blind)
#A63E67
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a227a8;
/* rgb */ color: rgb(162, 39, 168);
/* oklch */ color: oklch(52.1% 0.211 326.0);
Tailwind
colors: {
  custom: {
    50: '#c170c2',
    500: '#a227a8',
    950: '#000000',
  },
}
SCSS
$custom: #a227a8;
$custom-light: #c170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a8",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 297.209,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52066,
    "c": 0.21126,
    "h": 326
  },
  "luminance": 0.1196
}

Semantic roles & 50–950 ramp

primary
#A227A8
secondary
#6CC367
accent
#E5424A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A8

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

Preview Lab → · Contrast checker → · Palette generator →

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