#AF229F#AF229F

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

Color values

HEX#AF229F
RGBrgb(175, 34, 159)
HSLhsl(307, 67%, 41%)
HSVhsv(307, 81%, 69%)
CMYKcmyk(0%, 80.6%, 9.1%, 31.4%)
CIE-LABlab(42.40, 66.51, -34.94)
CIE-LCHlch(42.40, 75.13, 332.28°)
OKLaboklab(53.22% 0.1927 -0.096)
OKLCHoklch(53.22% 0.215 333.5)
XYZxyz(24.5094, 12.7634, 33.9669)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF229F #22AF32
analogous
#7822AF #AF229F #AF2258
triadic
#AF229F #9FAF22 #229FAF
tetradic
#AF229F #AF7822 #22AF32 #2258AF
square
#AF229F #AF7822 #22AF32 #2258AF
split-complementary
#AF229F #58AF22 #22AF78
monochromatic
#490E42 #7C1870 #AF229F #D836C6 #E269D4

Accessibility & contrast

On white

5.91
#AF229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF229F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF229F#FFFFFF#000000##FFFFFF
##AF229F1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A2
Deuteranopia (green-blind)
#566B9C
Tritanopia (blue-blind)
#B73261
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af229f;
/* rgb */ color: rgb(175, 34, 159);
/* oklch */ color: oklch(53.2% 0.215 333.5);
Tailwind
colors: {
  custom: {
    50: '#cb6fbc',
    500: '#af229f',
    950: '#000000',
  },
}
SCSS
$custom: #af229f;
$custom-light: #cb6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#af229f",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 306.809,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53218,
    "c": 0.21528,
    "h": 333.5
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#AF229F
secondary
#65C870
accent
#EA513D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #AF229F

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

Preview Lab → · Contrast checker → · Palette generator →

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