#A228C9#A228C9

#A228C9 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.237 H 316.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#A228C9
RGBrgb(162, 40, 201)
HSLhsl(285, 67%, 47%)
HSVhsv(285, 80%, 79%)
CMYKcmyk(19.4%, 80.1%, 0%, 21.2%)
CIE-LABlab(43.39, 69.43, -58.29)
CIE-LCHlch(43.39, 90.66, 319.99°)
OKLaboklab(54.32% 0.1705 -0.1645)
OKLCHoklch(54.32% 0.237 316)
XYZxyz(26.2000, 13.4171, 56.4567)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228C9 #4FC928
analogous
#5228C9 #A228C9 #C9289F
triadic
#A228C9 #C9A228 #28C9A2
tetradic
#A228C9 #C95228 #4FC928 #289FC9
square
#A228C9 #C95228 #4FC928 #289FC9
split-complementary
#A228C9 #9FC928 #28C952
monochromatic
#501463 #791E96 #A228C9 #BB52DD #CF85E7

Accessibility & contrast

On white

5.70
#A228C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#A228C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228C9
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228C9#FFFFFF#000000##FFFFFF
##A228C91.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#246AC6
Tritanopia (blue-blind)
#9F4F7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a228c9;
/* rgb */ color: rgb(162, 40, 201);
/* oklch */ color: oklch(54.3% 0.237 316.0);
Tailwind
colors: {
  custom: {
    50: '#c272da',
    500: '#a228c9',
    950: '#000000',
  },
}
SCSS
$custom: #a228c9;
$custom-light: #c272da;
$custom-dark: #000000;
JSON
{
  "hex": "#a228c9",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 201
  },
  "hsl": {
    "h": 285.466,
    "s": 66.805,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54319,
    "c": 0.23689,
    "h": 316
  },
  "luminance": 0.13416
}

Semantic roles & 50–950 ramp

primary
#A228C9
secondary
#91D07D
accent
#EA3E68
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A228C9

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

Preview Lab → · Contrast checker → · Palette generator →

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