#A7229F#A7229F

#A7229F is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.211 H 330.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A7229F
RGBrgb(167, 34, 159)
HSLhsl(304, 66%, 39%)
HSVhsv(304, 80%, 65%)
CMYKcmyk(0%, 79.6%, 4.8%, 34.5%)
CIE-LABlab(41.00, 64.83, -37.26)
CIE-LCHlch(41.00, 74.77, 330.11°)
OKLaboklab(51.95% 0.1847 -0.1028)
OKLCHoklch(51.95% 0.211 330.9)
XYZxyz(22.7664, 11.8646, 33.8852)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7229F #22A72A
analogous
#6D22A7 #A7229F #A7225D
triadic
#A7229F #9FA722 #229FA7
tetradic
#A7229F #A76D22 #22A72A #225DA7
square
#A7229F #A76D22 #22A72A #225DA7
split-complementary
#A7229F #5DA722 #22A76D
monochromatic
#410D3E #74186F #A7229F #D531CB #DF64D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7229F#FFFFFF#000000##FFFFFF
##A7229F1.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)
#0F55A2
Deuteranopia (green-blind)
#4E679C
Tritanopia (blue-blind)
#AE3561
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a7229f;
/* rgb */ color: rgb(167, 34, 159);
/* oklch */ color: oklch(52.0% 0.211 330.9);
Tailwind
colors: {
  custom: {
    50: '#c56ebc',
    500: '#a7229f',
    950: '#000000',
  },
}
SCSS
$custom: #a7229f;
$custom-light: #c56ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#a7229f",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 303.609,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.21141,
    "h": 330.9
  },
  "luminance": 0.11863
}

Semantic roles & 50–950 ramp

primary
#A7229F
secondary
#60C566
accent
#E9493F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A7229F

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

Preview Lab → · Contrast checker → · Palette generator →

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