#AF268A#AF268A

#AF268A is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.4% C 0.198 H 341.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF268A
RGBrgb(175, 38, 138)
HSLhsl(316, 64%, 42%)
HSVhsv(316, 78%, 69%)
CMYKcmyk(0%, 78.3%, 21.1%, 31.4%)
CIE-LABlab(41.75, 62.49, -23.25)
CIE-LCHlch(41.75, 66.67, 339.59°)
OKLaboklab(52.41% 0.1877 -0.0626)
OKLCHoklch(52.41% 0.198 341.6)
XYZxyz(22.9605, 12.3376, 25.2120)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF268A #26AF4B
analogous
#9026AF #AF268A #AF2646
triadic
#AF268A #8AAF26 #268AAF
tetradic
#AF268A #AF9026 #26AF4B #2646AF
square
#AF268A #AF9026 #26AF4B #2646AF
split-complementary
#AF268A #46AF26 #26AF90
monochromatic
#4A103B #7D1B62 #AF268A #D53DAC #E070C2

Accessibility & contrast

On white

6.06
#AF268A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF268A
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF268A#FFFFFF#000000##FFFFFF
##AF268A1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#606A87
Tritanopia (blue-blind)
#BA2956
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af268a;
/* rgb */ color: rgb(175, 38, 138);
/* oklch */ color: oklch(52.4% 0.198 341.6);
Tailwind
colors: {
  custom: {
    50: '#cb70ac',
    500: '#af268a',
    950: '#000000',
  },
}
SCSS
$custom: #af268a;
$custom-light: #cb70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af268a",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 316.204,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52411,
    "c": 0.1978,
    "h": 341.6
  },
  "luminance": 0.12335
}

Semantic roles & 50–950 ramp

primary
#AF268A
secondary
#6AC783
accent
#E76E40
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF268A

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

Preview Lab → · Contrast checker → · Palette generator →

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