#AF227C#AF227C

#AF227C is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.5% C 0.193 H 347.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF227C
RGBrgb(175, 34, 124)
HSLhsl(322, 67%, 41%)
HSVhsv(322, 81%, 69%)
CMYKcmyk(0%, 80.6%, 29.1%, 31.4%)
CIE-LABlab(40.76, 61.83, -16.15)
CIE-LCHlch(40.76, 63.90, 345.36°)
OKLaboklab(51.5% 0.1886 -0.0427)
OKLCHoklch(51.5% 0.193 347.3)
XYZxyz(21.8904, 11.7158, 20.1735)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF227C #22AF55
analogous
#9B22AF #AF227C #AF2235
triadic
#AF227C #7CAF22 #227CAF
tetradic
#AF227C #AF9B22 #22AF55 #2235AF
square
#AF227C #AF9B22 #22AF55 #2235AF
split-complementary
#AF227C #35AF22 #22AF9B
monochromatic
#490E33 #7C1858 #AF227C #D8369D #E269B6

Accessibility & contrast

On white

6.28
#AF227C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF227C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF227C
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF227C#FFFFFF#000000##FFFFFF
##AF227C1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517E
Deuteranopia (green-blind)
#636979
Tritanopia (blue-blind)
#BC1B4D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af227c;
/* rgb */ color: rgb(175, 34, 124);
/* oklch */ color: oklch(51.5% 0.193 347.3);
Tailwind
colors: {
  custom: {
    50: '#cb6ea2',
    500: '#af227c',
    950: '#000000',
  },
}
SCSS
$custom: #af227c;
$custom-light: #cb6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#af227c",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 321.702,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51501,
    "c": 0.19336,
    "h": 347.3
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#AF227C
secondary
#65C889
accent
#EA7C3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF227C

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

Preview Lab → · Contrast checker → · Palette generator →

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