#AF2781#AF2781

#AF2781 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.1% C 0.191 H 345.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF2781
RGBrgb(175, 39, 129)
HSLhsl(320, 64%, 42%)
HSVhsv(320, 78%, 69%)
CMYKcmyk(0%, 77.7%, 26.3%, 31.4%)
CIE-LABlab(41.46, 61.04, -18.17)
CIE-LCHlch(41.46, 63.69, 343.42°)
OKLaboklab(52.07% 0.1852 -0.0483)
OKLCHoklch(52.07% 0.191 345.4)
XYZxyz(22.3682, 12.1525, 21.9323)
Luminance0.1215 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2781 #27AF55
analogous
#9927AF #AF2781 #AF273D
triadic
#AF2781 #81AF27 #2781AF
tetradic
#AF2781 #AF9927 #27AF55 #273DAF
square
#AF2781 #AF9927 #27AF55 #273DAF
split-complementary
#AF2781 #3DAF27 #27AF99
monochromatic
#4B1137 #7D1C5C #AF2781 #D43FA2 #DF71BA

Accessibility & contrast

On white

6.12
#AF2781 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF2781 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2781
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2781#FFFFFF#000000##FFFFFF
##AF27811.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5383
Deuteranopia (green-blind)
#636A7E
Tritanopia (blue-blind)
#BB2451
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2781;
/* rgb */ color: rgb(175, 39, 129);
/* oklch */ color: oklch(52.1% 0.191 345.4);
Tailwind
colors: {
  custom: {
    50: '#cb70a5',
    500: '#af2781',
    950: '#000000',
  },
}
SCSS
$custom: #af2781;
$custom-light: #cb70a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2781",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 320.294,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52073,
    "c": 0.19143,
    "h": 345.4
  },
  "luminance": 0.1215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2781

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

Preview Lab → · Contrast checker → · Palette generator →

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