#AF267B#AF267B

#AF267B is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.7% C 0.189 H 347.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AF267B
RGBrgb(175, 38, 123)
HSLhsl(323, 64%, 42%)
HSVhsv(323, 78%, 69%)
CMYKcmyk(0%, 78.3%, 29.7%, 31.4%)
CIE-LABlab(41.11, 60.60, -15.00)
CIE-LCHlch(41.11, 62.43, 346.09°)
OKLaboklab(51.74% 0.1849 -0.0395)
OKLCHoklch(51.74% 0.189 347.9)
XYZxyz(21.9486, 11.9328, 19.8825)
Luminance0.1193 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF267B #26AF5A
analogous
#9F26AF #AF267B #AF2636
triadic
#AF267B #7BAF26 #267BAF
tetradic
#AF267B #AF9F26 #26AF5A #2636AF
square
#AF267B #AF9F26 #26AF5A #2636AF
split-complementary
#AF267B #36AF26 #26AF9F
monochromatic
#4A1034 #7D1B58 #AF267B #D53D9B #E070B5

Accessibility & contrast

On white

6.20
#AF267B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AF267B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF267B
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF267B#FFFFFF#000000##FFFFFF
##AF267B1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527D
Deuteranopia (green-blind)
#656978
Tritanopia (blue-blind)
#BC1F4E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af267b;
/* rgb */ color: rgb(175, 38, 123);
/* oklch */ color: oklch(51.7% 0.189 347.9);
Tailwind
colors: {
  custom: {
    50: '#cb6fa1',
    500: '#af267b',
    950: '#000000',
  },
}
SCSS
$custom: #af267b;
$custom-light: #cb6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#af267b",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 322.774,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5174,
    "c": 0.18907,
    "h": 347.9
  },
  "luminance": 0.1193
}

Semantic roles & 50–950 ramp

primary
#AF267B
secondary
#6AC78D
accent
#E78040
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF267B

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

Preview Lab → · Contrast checker → · Palette generator →

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