#AF268B#AF268B

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

Color values

HEX#AF268B
RGBrgb(175, 38, 139)
HSLhsl(316, 64%, 42%)
HSVhsv(316, 78%, 69%)
CMYKcmyk(0%, 78.3%, 20.6%, 31.4%)
CIE-LABlab(41.79, 62.62, -23.79)
CIE-LCHlch(41.79, 66.99, 339.20°)
OKLaboklab(52.46% 0.1878 -0.0641)
OKLCHoklch(52.46% 0.198 341.2)
XYZxyz(23.0333, 12.3667, 25.5951)
Luminance0.1236 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF268B #26AF4A
analogous
#8E26AF #AF268B #AF2647
triadic
#AF268B #8BAF26 #268BAF
tetradic
#AF268B #AF8E26 #26AF4A #2647AF
square
#AF268B #AF8E26 #26AF4A #2647AF
split-complementary
#AF268B #47AF26 #26AF8E
monochromatic
#4A103B #7D1B63 #AF268B #D53DAD #E070C2

Accessibility & contrast

On white

6.05
#AF268B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF268B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF268B
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF268B#FFFFFF#000000##FFFFFF
##AF268B1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558E
Deuteranopia (green-blind)
#5F6A88
Tritanopia (blue-blind)
#BA2956
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af268b;
/* rgb */ color: rgb(175, 38, 139);
/* oklch */ color: oklch(52.5% 0.198 341.2);
Tailwind
colors: {
  custom: {
    50: '#cb70ad',
    500: '#af268b',
    950: '#000000',
  },
}
SCSS
$custom: #af268b;
$custom-light: #cb70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af268b",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 315.766,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52459,
    "c": 0.19843,
    "h": 341.2
  },
  "luminance": 0.12364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF268B

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

Preview Lab → · Contrast checker → · Palette generator →

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