#AF268F#AF268F

#AF268F is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.7% C 0.201 H 339.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF268F
RGBrgb(175, 38, 143)
HSLhsl(314, 64%, 42%)
HSVhsv(314, 78%, 69%)
CMYKcmyk(0%, 78.3%, 18.3%, 31.4%)
CIE-LABlab(41.98, 63.16, -25.94)
CIE-LCHlch(41.98, 68.28, 337.67°)
OKLaboklab(52.65% 0.1883 -0.0702)
OKLCHoklch(52.65% 0.201 339.6)
XYZxyz(23.3309, 12.4857, 27.1625)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF268F #26AF46
analogous
#8B26AF #AF268F #AF264A
triadic
#AF268F #8FAF26 #268FAF
tetradic
#AF268F #AF8B26 #26AF46 #264AAF
square
#AF268F #AF8B26 #26AF46 #264AAF
split-complementary
#AF268F #4AAF26 #26AF8B
monochromatic
#4A103D #7D1B66 #AF268F #D53DB2 #E070C6

Accessibility & contrast

On white

6.01
#AF268F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF268F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF268F
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF268F#FFFFFF#000000##FFFFFF
##AF268F1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305592
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#B92C59
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af268f;
/* rgb */ color: rgb(175, 38, 143);
/* oklch */ color: oklch(52.7% 0.201 339.6);
Tailwind
colors: {
  custom: {
    50: '#cb70b0',
    500: '#af268f',
    950: '#000000',
  },
}
SCSS
$custom: #af268f;
$custom-light: #cb70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af268f",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 314.015,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52653,
    "c": 0.20097,
    "h": 339.6
  },
  "luminance": 0.12483
}

Semantic roles & 50–950 ramp

primary
#AF268F
secondary
#6AC780
accent
#E76740
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF268F

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

Preview Lab → · Contrast checker → · Palette generator →

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