#AF229E#AF229E

#AF229E is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.215 H 333.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AF229E
RGBrgb(175, 34, 158)
HSLhsl(307, 67%, 41%)
HSVhsv(307, 81%, 69%)
CMYKcmyk(0%, 80.6%, 9.7%, 31.4%)
CIE-LABlab(42.35, 66.36, -34.43)
CIE-LCHlch(42.35, 74.76, 332.58°)
OKLaboklab(53.16% 0.1927 -0.0945)
OKLCHoklch(53.16% 0.215 333.9)
XYZxyz(24.4230, 12.7288, 33.5118)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF229E #22AF33
analogous
#7922AF #AF229E #AF2257
triadic
#AF229E #9EAF22 #229EAF
tetradic
#AF229E #AF7922 #22AF33 #2257AF
square
#AF229E #AF7922 #22AF33 #2257AF
split-complementary
#AF229E #57AF22 #22AF79
monochromatic
#490E41 #7C1870 #AF229E #D836C4 #E269D3

Accessibility & contrast

On white

5.92
#AF229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF229E
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF229E#FFFFFF#000000##FFFFFF
##AF229E1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D57A1
Deuteranopia (green-blind)
#566B9B
Tritanopia (blue-blind)
#B73260
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af229e;
/* rgb */ color: rgb(175, 34, 158);
/* oklch */ color: oklch(53.2% 0.215 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb6fbb',
    500: '#af229e',
    950: '#000000',
  },
}
SCSS
$custom: #af229e;
$custom-light: #cb6fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#af229e",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 307.234,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53163,
    "c": 0.21458,
    "h": 333.9
  },
  "luminance": 0.12727
}

Semantic roles & 50–950 ramp

primary
#AF229E
secondary
#65C871
accent
#EA523D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #AF229E

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

Preview Lab → · Contrast checker → · Palette generator →

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