#A228A8#A228A8

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

Color values

HEX#A228A8
RGBrgb(162, 40, 168)
HSLhsl(297, 62%, 41%)
HSVhsv(297, 76%, 66%)
CMYKcmyk(3.6%, 76.2%, 0%, 34.1%)
CIE-LABlab(41.26, 63.53, -42.29)
CIE-LCHlch(41.26, 76.31, 326.35°)
OKLaboklab(52.14% 0.1743 -0.1176)
OKLCHoklch(52.14% 0.21 326)
XYZxyz(22.7265, 12.0277, 38.1628)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A8 #2EA828
analogous
#6228A8 #A228A8 #A8286E
triadic
#A228A8 #A8A228 #28A8A2
tetradic
#A228A8 #A86228 #2EA828 #286EA8
square
#A228A8 #A86228 #2EA828 #286EA8
split-complementary
#A228A8 #6EA828 #28A862
monochromatic
#431045 #721C77 #A228A8 #CA3DD1 #D76EDC

Accessibility & contrast

On white

6.17
#A228A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A228A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A8
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A8#FFFFFF#000000##FFFFFF
##A228A81.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a228a8;
/* rgb */ color: rgb(162, 40, 168);
/* oklch */ color: oklch(52.1% 0.210 326.0);
Tailwind
colors: {
  custom: {
    50: '#c170c2',
    500: '#a228a8',
    950: '#000000',
  },
}
SCSS
$custom: #a228a8;
$custom-light: #c170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a8",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 297.188,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52141,
    "c": 0.21028,
    "h": 326
  },
  "luminance": 0.12026
}

Semantic roles & 50–950 ramp

primary
#A228A8
secondary
#6DC369
accent
#E5434B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A8

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

Preview Lab → · Contrast checker → · Palette generator →

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