#A228A3#A228A3

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

Color values

HEX#A228A3
RGBrgb(162, 40, 163)
HSLhsl(300, 61%, 40%)
HSVhsv(300, 75%, 64%)
CMYKcmyk(0.6%, 75.5%, 0%, 36.1%)
CIE-LABlab(40.97, 62.69, -39.76)
CIE-LCHlch(40.97, 74.24, 327.61°)
OKLaboklab(51.84% 0.1745 -0.1103)
OKLCHoklch(51.84% 0.206 327.7)
XYZxyz(22.2696, 11.8449, 35.7566)
Luminance0.1184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A3 #29A328
analogous
#6428A3 #A228A3 #A32867
triadic
#A228A3 #A3A228 #28A3A2
tetradic
#A228A3 #A36428 #29A328 #2867A3
square
#A228A3 #A36428 #29A328 #2867A3
split-complementary
#A228A3 #67A328 #28A364
monochromatic
#401041 #711C72 #A228A3 #CD3ACF #DA6BDB

Accessibility & contrast

On white

6.23
#A228A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A228A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A3#FFFFFF#000000##FFFFFF
##A228A31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a228a3;
/* rgb */ color: rgb(162, 40, 163);
/* oklch */ color: oklch(51.8% 0.206 327.7);
Tailwind
colors: {
  custom: {
    50: '#c170bf',
    500: '#a228a3',
    950: '#000000',
  },
}
SCSS
$custom: #a228a3;
$custom-light: #c170bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a3",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 299.512,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5184,
    "c": 0.20641,
    "h": 327.7
  },
  "luminance": 0.11843
}

Semantic roles & 50–950 ramp

primary
#A228A3
secondary
#67C166
accent
#E44445
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A3

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

Preview Lab → · Contrast checker → · Palette generator →

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