#AF229B#AF229B

#AF229B is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.213 H 334.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF229B
RGBrgb(175, 34, 155)
HSLhsl(309, 67%, 41%)
HSVhsv(309, 81%, 69%)
CMYKcmyk(0%, 80.6%, 11.4%, 31.4%)
CIE-LABlab(42.20, 65.92, -32.87)
CIE-LCHlch(42.20, 73.66, 333.50°)
OKLaboklab(53% 0.1925 -0.09)
OKLCHoklch(53% 0.213 334.9)
XYZxyz(24.1679, 12.6268, 32.1684)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF229B #22AF36
analogous
#7C22AF #AF229B #AF2254
triadic
#AF229B #9BAF22 #229BAF
tetradic
#AF229B #AF7C22 #22AF36 #2254AF
square
#AF229B #AF7C22 #22AF36 #2254AF
split-complementary
#AF229B #54AF22 #22AF7C
monochromatic
#490E40 #7C186E #AF229B #D836C1 #E269D1

Accessibility & contrast

On white

5.96
#AF229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF229B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF229B
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF229B#FFFFFF#000000##FFFFFF
##AF229B1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21579E
Deuteranopia (green-blind)
#586B98
Tritanopia (blue-blind)
#B8305E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af229b;
/* rgb */ color: rgb(175, 34, 155);
/* oklch */ color: oklch(53.0% 0.213 334.9);
Tailwind
colors: {
  custom: {
    50: '#cb6fb9',
    500: '#af229b',
    950: '#000000',
  },
}
SCSS
$custom: #af229b;
$custom-light: #cb6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#af229b",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 308.511,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53001,
    "c": 0.21253,
    "h": 334.9
  },
  "luminance": 0.12625
}

Semantic roles & 50–950 ramp

primary
#AF229B
secondary
#65C873
accent
#EA563D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #AF229B

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

Preview Lab → · Contrast checker → · Palette generator →

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