#AF268C#AF268C

#AF268C is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.5% C 0.199 H 340.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF268C
RGBrgb(175, 38, 140)
HSLhsl(315, 64%, 42%)
HSVhsv(315, 78%, 69%)
CMYKcmyk(0%, 78.3%, 20%, 31.4%)
CIE-LABlab(41.84, 62.75, -24.33)
CIE-LCHlch(41.84, 67.31, 338.81°)
OKLaboklab(52.51% 0.1879 -0.0656)
OKLCHoklch(52.51% 0.199 340.8)
XYZxyz(23.1067, 12.3960, 25.9816)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF268C #26AF49
analogous
#8D26AF #AF268C #AF2648
triadic
#AF268C #8CAF26 #268CAF
tetradic
#AF268C #AF8D26 #26AF49 #2648AF
square
#AF268C #AF8D26 #26AF49 #2648AF
split-complementary
#AF268C #48AF26 #26AF8D
monochromatic
#4A103C #7D1B64 #AF268C #D53DAE #E070C3

Accessibility & contrast

On white

6.04
#AF268C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF268C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF268C
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF268C#FFFFFF#000000##FFFFFF
##AF268C1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#5F6A89
Tritanopia (blue-blind)
#BA2A57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af268c;
/* rgb */ color: rgb(175, 38, 140);
/* oklch */ color: oklch(52.5% 0.199 340.8);
Tailwind
colors: {
  custom: {
    50: '#cb70ae',
    500: '#af268c',
    950: '#000000',
  },
}
SCSS
$custom: #af268c;
$custom-light: #cb70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af268c",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 315.328,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52507,
    "c": 0.19906,
    "h": 340.8
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#AF268C
secondary
#6AC782
accent
#E76B40
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF268C

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

Preview Lab → · Contrast checker → · Palette generator →

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