#A7229E#A7229E

#A7229E is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.211 H 331.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A7229E
RGBrgb(167, 34, 158)
HSLhsl(304, 66%, 39%)
HSVhsv(304, 80%, 65%)
CMYKcmyk(0%, 79.6%, 5.4%, 34.5%)
CIE-LABlab(40.94, 64.67, -36.74)
CIE-LCHlch(40.94, 74.38, 330.40°)
OKLaboklab(51.9% 0.1847 -0.1014)
OKLCHoklch(51.9% 0.211 331.2)
XYZxyz(22.6799, 11.8301, 33.4300)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7229E #22A72B
analogous
#6E22A7 #A7229E #A7225C
triadic
#A7229E #9EA722 #229EA7
tetradic
#A7229E #A76E22 #22A72B #225CA7
square
#A7229E #A76E22 #22A72B #225CA7
split-complementary
#A7229E #5CA722 #22A76E
monochromatic
#410D3E #74186E #A7229E #D531CA #DF64D7

Accessibility & contrast

On white

6.24
#A7229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7229E
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7229E#FFFFFF#000000##FFFFFF
##A7229E1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1155A1
Deuteranopia (green-blind)
#4F679B
Tritanopia (blue-blind)
#AE3560
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a7229e;
/* rgb */ color: rgb(167, 34, 158);
/* oklch */ color: oklch(51.9% 0.211 331.2);
Tailwind
colors: {
  custom: {
    50: '#c56ebb',
    500: '#a7229e',
    950: '#000000',
  },
}
SCSS
$custom: #a7229e;
$custom-light: #c56ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#a7229e",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 304.06,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51895,
    "c": 0.21068,
    "h": 331.2
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

primary
#A7229E
secondary
#60C567
accent
#E94A3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A7229E

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

Preview Lab → · Contrast checker → · Palette generator →

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