#AF2266#AF2266

#AF2266 is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.6% C 0.183 H 357.3°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#AF2266
RGBrgb(175, 34, 102)
HSLhsl(331, 67%, 41%)
HSVhsv(331, 81%, 69%)
CMYKcmyk(0%, 80.6%, 41.7%, 31.4%)
CIE-LABlab(39.95, 59.43, -3.62)
CIE-LCHlch(39.95, 59.54, 356.51°)
OKLaboklab(50.64% 0.1829 -0.0088)
OKLCHoklch(50.64% 0.183 357.3)
XYZxyz(20.6510, 11.2200, 13.6460)
Luminance0.1122 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2266 #22AF6B
analogous
#AF22AC #AF2266 #AF2522
triadic
#AF2266 #66AF22 #2266AF
tetradic
#AF2266 #ACAF22 #22AF6B #2522AF
square
#AF2266 #ACAF22 #22AF6B #2522AF
split-complementary
#AF2266 #22AF25 #22ACAF
monochromatic
#490E2A #7C1848 #AF2266 #D83684 #E269A4

Accessibility & contrast

On white

6.47
#AF2266 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#AF2266 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2266
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2266#FFFFFF#000000##FFFFFF
##AF22661.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#424D68
Deuteranopia (green-blind)
#696863
Tritanopia (blue-blind)
#BE0341
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af2266;
/* rgb */ color: rgb(175, 34, 102);
/* oklch */ color: oklch(50.6% 0.183 357.3);
Tailwind
colors: {
  custom: {
    50: '#cc6d91',
    500: '#af2266',
    950: '#000000',
  },
}
SCSS
$custom: #af2266;
$custom-light: #cc6d91;
$custom-dark: #000000;
JSON
{
  "hex": "#af2266",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 331.064,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50644,
    "c": 0.18309,
    "h": 357.3
  },
  "luminance": 0.11217
}

Semantic roles & 50–950 ramp

primary
#AF2266
secondary
#65C898
accent
#EA973D
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2266

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

Preview Lab → · Contrast checker → · Palette generator →

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