#A228AF#A228AF

#A228AF is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.216 H 323.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A228AF
RGBrgb(162, 40, 175)
HSLhsl(294, 63%, 42%)
HSVhsv(294, 77%, 69%)
CMYKcmyk(7.4%, 77.1%, 0%, 31.4%)
CIE-LABlab(41.68, 64.73, -45.78)
CIE-LCHlch(41.68, 79.28, 324.73°)
OKLaboklab(52.58% 0.1739 -0.1278)
OKLCHoklch(52.58% 0.216 323.7)
XYZxyz(23.3963, 12.2956, 41.6901)
Luminance0.1229 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228AF #35AF28
analogous
#5E28AF #A228AF #AF2879
triadic
#A228AF #AFA228 #28AFA2
tetradic
#A228AF #AF5E28 #35AF28 #2879AF
square
#A228AF #AF5E28 #35AF28 #2879AF
split-complementary
#A228AF #79AF28 #28AF5E
monochromatic
#46114B #741D7D #A228AF #C541D4 #D473DF

Accessibility & contrast

On white

6.07
#A228AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A228AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228AF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228AF#FFFFFF#000000##FFFFFF
##A228AF1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#4167AC
Tritanopia (blue-blind)
#A5426B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a228af;
/* rgb */ color: rgb(162, 40, 175);
/* oklch */ color: oklch(52.6% 0.216 323.7);
Tailwind
colors: {
  custom: {
    50: '#c270c7',
    500: '#a228af',
    950: '#000000',
  },
}
SCSS
$custom: #a228af;
$custom-light: #c270c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a228af",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 294.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52576,
    "c": 0.21581,
    "h": 323.7
  },
  "luminance": 0.12294
}

Semantic roles & 50–950 ramp

primary
#A228AF
secondary
#75C66D
accent
#E64252
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A228AF

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

Preview Lab → · Contrast checker → · Palette generator →

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