#AF229C#AF229C

#AF229C is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.213 H 334.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF229C
RGBrgb(175, 34, 156)
HSLhsl(308, 67%, 41%)
HSVhsv(308, 81%, 69%)
CMYKcmyk(0%, 80.6%, 10.9%, 31.4%)
CIE-LABlab(42.25, 66.07, -33.39)
CIE-LCHlch(42.25, 74.03, 333.19°)
OKLaboklab(53.06% 0.1926 -0.0915)
OKLCHoklch(53.06% 0.213 334.6)
XYZxyz(24.2523, 12.6605, 32.6125)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF229C #22AF35
analogous
#7B22AF #AF229C #AF2255
triadic
#AF229C #9CAF22 #229CAF
tetradic
#AF229C #AF7B22 #22AF35 #2255AF
square
#AF229C #AF7B22 #22AF35 #2255AF
split-complementary
#AF229C #55AF22 #22AF7B
monochromatic
#490E41 #7C186E #AF229C #D836C2 #E269D2

Accessibility & contrast

On white

5.95
#AF229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF229C
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF229C#FFFFFF#000000##FFFFFF
##AF229C1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F579F
Deuteranopia (green-blind)
#576B99
Tritanopia (blue-blind)
#B8315F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af229c;
/* rgb */ color: rgb(175, 34, 156);
/* oklch */ color: oklch(53.1% 0.213 334.6);
Tailwind
colors: {
  custom: {
    50: '#cb6fb9',
    500: '#af229c',
    950: '#000000',
  },
}
SCSS
$custom: #af229c;
$custom-light: #cb6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#af229c",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 308.085,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53055,
    "c": 0.21322,
    "h": 334.6
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#AF229C
secondary
#65C872
accent
#EA553D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #AF229C

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

Preview Lab → · Contrast checker → · Palette generator →

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