#A228A2#A228A2

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

Color values

HEX#A228A2
RGBrgb(162, 40, 162)
HSLhsl(300, 60%, 40%)
HSVhsv(300, 75%, 64%)
CMYKcmyk(0%, 75.3%, 0%, 36.5%)
CIE-LABlab(40.91, 62.52, -39.25)
CIE-LCHlch(40.91, 73.83, 327.88°)
OKLaboklab(51.78% 0.1745 -0.1088)
OKLCHoklch(51.78% 0.206 328.1)
XYZxyz(22.1804, 11.8092, 35.2866)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A2 #28A228
analogous
#6528A2 #A228A2 #A22865
triadic
#A228A2 #A2A228 #28A2A2
tetradic
#A228A2 #A26528 #28A228 #2865A2
square
#A228A2 #A26528 #28A228 #2865A2
split-complementary
#A228A2 #65A228 #28A265
monochromatic
#401040 #711C71 #A228A2 #CE39CE #DA6ADA

Accessibility & contrast

On white

6.25
#A228A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A228A2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A2#FFFFFF#000000##FFFFFF
##A228A21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B56A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#A73C64
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a228a2;
/* rgb */ color: rgb(162, 40, 162);
/* oklch */ color: oklch(51.8% 0.206 328.1);
Tailwind
colors: {
  custom: {
    50: '#c170be',
    500: '#a228a2',
    950: '#000000',
  },
}
SCSS
$custom: #a228a2;
$custom-light: #c170be;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a2",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 300,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.20564,
    "h": 328.1
  },
  "luminance": 0.11808
}

Semantic roles & 50–950 ramp

primary
#A228A2
secondary
#65C165
accent
#E44444
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A2

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

Preview Lab → · Contrast checker → · Palette generator →

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