#AF229D#AF229D

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

Color values

HEX#AF229D
RGBrgb(175, 34, 157)
HSLhsl(308, 67%, 41%)
HSVhsv(308, 81%, 69%)
CMYKcmyk(0%, 80.6%, 10.3%, 31.4%)
CIE-LABlab(42.30, 66.21, -33.91)
CIE-LCHlch(42.30, 74.39, 332.88°)
OKLaboklab(53.11% 0.1926 -0.093)
OKLCHoklch(53.11% 0.214 334.2)
XYZxyz(24.3373, 12.6945, 33.0603)
Luminance0.1269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF229D #22AF34
analogous
#7A22AF #AF229D #AF2256
triadic
#AF229D #9DAF22 #229DAF
tetradic
#AF229D #AF7A22 #22AF34 #2256AF
square
#AF229D #AF7A22 #22AF34 #2256AF
split-complementary
#AF229D #56AF22 #22AF7A
monochromatic
#490E41 #7C186F #AF229D #D836C3 #E269D3

Accessibility & contrast

On white

5.93
#AF229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF229D
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF229D#FFFFFF#000000##FFFFFF
##AF229D1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af229d;
/* rgb */ color: rgb(175, 34, 157);
/* oklch */ color: oklch(53.1% 0.214 334.2);
Tailwind
colors: {
  custom: {
    50: '#cb6fba',
    500: '#af229d',
    950: '#000000',
  },
}
SCSS
$custom: #af229d;
$custom-light: #cb6fba;
$custom-dark: #000000;
JSON
{
  "hex": "#af229d",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 307.66,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53109,
    "c": 0.2139,
    "h": 334.2
  },
  "luminance": 0.12692
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF229D

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

Preview Lab → · Contrast checker → · Palette generator →

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