#AF2782#AF2782

#AF2782 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.192 H 344.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF2782
RGBrgb(175, 39, 130)
HSLhsl(320, 64%, 42%)
HSVhsv(320, 78%, 69%)
CMYKcmyk(0%, 77.7%, 25.7%, 31.4%)
CIE-LABlab(41.50, 61.16, -18.73)
CIE-LCHlch(41.50, 63.96, 342.98°)
OKLaboklab(52.12% 0.1854 -0.0499)
OKLCHoklch(52.12% 0.192 344.9)
XYZxyz(22.4350, 12.1792, 22.2841)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2782 #27AF54
analogous
#9827AF #AF2782 #AF273E
triadic
#AF2782 #82AF27 #2782AF
tetradic
#AF2782 #AF9827 #27AF54 #273EAF
square
#AF2782 #AF9827 #27AF54 #273EAF
split-complementary
#AF2782 #3EAF27 #27AF98
monochromatic
#4B1138 #7D1C5D #AF2782 #D43FA3 #DF71BB

Accessibility & contrast

On white

6.11
#AF2782 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF2782 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2782
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2782#FFFFFF#000000##FFFFFF
##AF27821.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395384
Deuteranopia (green-blind)
#636A7F
Tritanopia (blue-blind)
#BB2552
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2782;
/* rgb */ color: rgb(175, 39, 130);
/* oklch */ color: oklch(52.1% 0.192 344.9);
Tailwind
colors: {
  custom: {
    50: '#cb70a6',
    500: '#af2782',
    950: '#000000',
  },
}
SCSS
$custom: #af2782;
$custom-light: #cb70a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2782",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 319.853,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52118,
    "c": 0.19201,
    "h": 344.9
  },
  "luminance": 0.12177
}

Semantic roles & 50–950 ramp

primary
#AF2782
secondary
#6BC68A
accent
#E77841
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF2782

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

Preview Lab → · Contrast checker → · Palette generator →

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