#AF268D#AF268D

#AF268D is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.6% C 0.200 H 340.4°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AF268D
RGBrgb(175, 38, 141)
HSLhsl(315, 64%, 42%)
HSVhsv(315, 78%, 69%)
CMYKcmyk(0%, 78.3%, 19.4%, 31.4%)
CIE-LABlab(41.88, 62.89, -24.87)
CIE-LCHlch(41.88, 67.63, 338.43°)
OKLaboklab(52.55% 0.1881 -0.0671)
OKLCHoklch(52.55% 0.2 340.4)
XYZxyz(23.1807, 12.4256, 26.3717)
Luminance0.1242 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF268D #26AF48
analogous
#8D26AF #AF268D #AF2648
triadic
#AF268D #8DAF26 #268DAF
tetradic
#AF268D #AF8D26 #26AF48 #2648AF
square
#AF268D #AF8D26 #26AF48 #2648AF
split-complementary
#AF268D #48AF26 #26AF8D
monochromatic
#4A103C #7D1B64 #AF268D #D53DAF #E070C4

Accessibility & contrast

On white

6.03
#AF268D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF268D
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF268D#FFFFFF#000000##FFFFFF
##AF268D1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#BA2B57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af268d;
/* rgb */ color: rgb(175, 38, 141);
/* oklch */ color: oklch(52.6% 0.200 340.4);
Tailwind
colors: {
  custom: {
    50: '#cb70ae',
    500: '#af268d',
    950: '#000000',
  },
}
SCSS
$custom: #af268d;
$custom-light: #cb70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af268d",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 314.891,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52555,
    "c": 0.19969,
    "h": 340.4
  },
  "luminance": 0.12423
}

Semantic roles & 50–950 ramp

primary
#AF268D
secondary
#6AC781
accent
#E76A40
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF268D

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

Preview Lab → · Contrast checker → · Palette generator →

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