#AF2892#AF2892

#AF2892 is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 52.9% C 0.201 H 338.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF2892
RGBrgb(175, 40, 146)
HSLhsl(313, 63%, 42%)
HSVhsv(313, 77%, 69%)
CMYKcmyk(0%, 77.1%, 16.6%, 31.4%)
CIE-LABlab(42.32, 63.00, -27.23)
CIE-LCHlch(42.32, 68.63, 336.63°)
OKLaboklab(52.95% 0.1869 -0.0739)
OKLCHoklch(52.95% 0.201 338.4)
XYZxyz(23.6269, 12.7092, 28.3974)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2892 #28AF45
analogous
#8928AF #AF2892 #AF284E
triadic
#AF2892 #92AF28 #2892AF
tetradic
#AF2892 #AF8928 #28AF45 #284EAF
square
#AF2892 #AF8928 #28AF45 #284EAF
split-complementary
#AF2892 #4EAF28 #28AF89
monochromatic
#4B113F #7D1D68 #AF2892 #D441B4 #DF73C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2892#FFFFFF#000000##FFFFFF
##AF28921.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)
#2F5795
Deuteranopia (green-blind)
#5D6B8F
Tritanopia (blue-blind)
#B92F5B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2892;
/* rgb */ color: rgb(175, 40, 146);
/* oklch */ color: oklch(52.9% 0.201 338.4);
Tailwind
colors: {
  custom: {
    50: '#cb71b2',
    500: '#af2892',
    950: '#000000',
  },
}
SCSS
$custom: #af2892;
$custom-light: #cb71b2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2892",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 312.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52946,
    "c": 0.20098,
    "h": 338.4
  },
  "luminance": 0.12707
}

Semantic roles & 50–950 ramp

primary
#AF2892
secondary
#6DC680
accent
#E66542
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #AF2892

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

Preview Lab → · Contrast checker → · Palette generator →

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