#AF2281#AF2281

#AF2281 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.7% C 0.196 H 345.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AF2281
RGBrgb(175, 34, 129)
HSLhsl(320, 67%, 41%)
HSVhsv(320, 81%, 69%)
CMYKcmyk(0%, 80.6%, 26.3%, 31.4%)
CIE-LABlab(40.97, 62.43, -18.92)
CIE-LCHlch(40.97, 65.24, 343.14°)
OKLaboklab(51.72% 0.1896 -0.0504)
OKLCHoklch(51.72% 0.196 345.1)
XYZxyz(22.2147, 11.8455, 21.8812)
Luminance0.1184 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2281 #22AF50
analogous
#9622AF #AF2281 #AF223B
triadic
#AF2281 #81AF22 #2281AF
tetradic
#AF2281 #AF9622 #22AF50 #223BAF
square
#AF2281 #AF9622 #22AF50 #223BAF
split-complementary
#AF2281 #3BAF22 #22AF96
monochromatic
#490E35 #7C185B #AF2281 #D836A3 #E269BB

Accessibility & contrast

On white

6.23
#AF2281 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF2281 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2281
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2281#FFFFFF#000000##FFFFFF
##AF22811.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365283
Deuteranopia (green-blind)
#62697E
Tritanopia (blue-blind)
#BB1F50
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2281;
/* rgb */ color: rgb(175, 34, 129);
/* oklch */ color: oklch(51.7% 0.196 345.1);
Tailwind
colors: {
  custom: {
    50: '#cb6ea5',
    500: '#af2281',
    950: '#000000',
  },
}
SCSS
$custom: #af2281;
$custom-light: #cb6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2281",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 319.574,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5172,
    "c": 0.19614,
    "h": 345.1
  },
  "luminance": 0.11843
}

Semantic roles & 50–950 ramp

primary
#AF2281
secondary
#65C885
accent
#EA763D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF2281

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

Preview Lab → · Contrast checker → · Palette generator →

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