#AF267D#AF267D

#AF267D is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.190 H 347.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#AF267D
RGBrgb(175, 38, 125)
HSLhsl(322, 64%, 42%)
HSVhsv(322, 78%, 69%)
CMYKcmyk(0%, 78.3%, 28.6%, 31.4%)
CIE-LABlab(41.19, 60.84, -16.12)
CIE-LCHlch(41.19, 62.94, 345.16°)
OKLaboklab(51.83% 0.1853 -0.0426)
OKLCHoklch(51.83% 0.19 347.1)
XYZxyz(22.0751, 11.9834, 20.5486)
Luminance0.1198 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF267D #26AF58
analogous
#9D26AF #AF267D #AF2639
triadic
#AF267D #7DAF26 #267DAF
tetradic
#AF267D #AF9D26 #26AF58 #2639AF
square
#AF267D #AF9D26 #26AF58 #2639AF
split-complementary
#AF267D #39AF26 #26AF9D
monochromatic
#4A1035 #7D1B59 #AF267D #D53D9E #E070B7

Accessibility & contrast

On white

6.18
#AF267D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF267D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF267D
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF267D#FFFFFF#000000##FFFFFF
##AF267D1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B527F
Deuteranopia (green-blind)
#646A7A
Tritanopia (blue-blind)
#BC204F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af267d;
/* rgb */ color: rgb(175, 38, 125);
/* oklch */ color: oklch(51.8% 0.190 347.1);
Tailwind
colors: {
  custom: {
    50: '#cb6fa2',
    500: '#af267d',
    950: '#000000',
  },
}
SCSS
$custom: #af267d;
$custom-light: #cb6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#af267d",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 321.898,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51825,
    "c": 0.19016,
    "h": 347.1
  },
  "luminance": 0.11981
}

Semantic roles & 50–950 ramp

primary
#AF267D
secondary
#6AC78C
accent
#E77D40
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF267D

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

Preview Lab → · Contrast checker → · Palette generator →

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