#AF26A9#AF26A9

#AF26A9 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.219 H 330.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF26A9
RGBrgb(175, 38, 169)
HSLhsl(303, 64%, 42%)
HSVhsv(303, 78%, 69%)
CMYKcmyk(0%, 78.3%, 3.4%, 31.4%)
CIE-LABlab(43.31, 66.97, -39.49)
CIE-LCHlch(43.31, 77.75, 329.48°)
OKLaboklab(54.04% 0.1897 -0.1091)
OKLCHoklch(54.04% 0.219 330.1)
XYZxyz(25.5336, 13.3668, 38.7637)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A9 #26AF2C
analogous
#7126AF #AF26A9 #AF2665
triadic
#AF26A9 #A9AF26 #26A9AF
tetradic
#AF26A9 #AF7126 #26AF2C #2665AF
square
#AF26A9 #AF7126 #26AF2C #2665AF
split-complementary
#AF26A9 #65AF26 #26AF71
monochromatic
#4A1048 #7D1B78 #AF26A9 #D53DCE #E070DB

Accessibility & contrast

On white

5.72
#AF26A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF26A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A9
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A9#FFFFFF#000000##FFFFFF
##AF26A91.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5BAC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#B63A67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af26a9;
/* rgb */ color: rgb(175, 38, 169);
/* oklch */ color: oklch(54.0% 0.219 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c3',
    500: '#af26a9',
    950: '#000000',
  },
}
SCSS
$custom: #af26a9;
$custom-light: #cb71c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a9",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 169
  },
  "hsl": {
    "h": 302.628,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5404,
    "c": 0.21889,
    "h": 330.1
  },
  "luminance": 0.13365
}

Semantic roles & 50–950 ramp

primary
#AF26A9
secondary
#6AC76E
accent
#E74840
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A9

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

Preview Lab → · Contrast checker → · Palette generator →

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