#AF25A9#AF25A9

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

Color values

HEX#AF25A9
RGBrgb(175, 37, 169)
HSLhsl(303, 65%, 42%)
HSVhsv(303, 79%, 69%)
CMYKcmyk(0%, 78.9%, 3.4%, 31.4%)
CIE-LABlab(43.22, 67.24, -39.64)
CIE-LCHlch(43.22, 78.06, 329.48°)
OKLaboklab(53.97% 0.1905 -0.1096)
OKLCHoklch(53.97% 0.22 330.1)
XYZxyz(25.5021, 13.3037, 38.7531)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A9 #25AF2B
analogous
#7025AF #AF25A9 #AF2564
triadic
#AF25A9 #A9AF25 #25A9AF
tetradic
#AF25A9 #AF7025 #25AF2B #2564AF
square
#AF25A9 #AF7025 #25AF2B #2564AF
split-complementary
#AF25A9 #64AF25 #25AF70
monochromatic
#4A1047 #7C1A78 #AF25A9 #D63CCF #E06EDB

Accessibility & contrast

On white

5.74
#AF25A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF25A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A9
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A9#FFFFFF#000000##FFFFFF
##AF25A91.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAC
Deuteranopia (green-blind)
#516CA6
Tritanopia (blue-blind)
#B63A67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af25a9;
/* rgb */ color: rgb(175, 37, 169);
/* oklch */ color: oklch(54.0% 0.220 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c3',
    500: '#af25a9',
    950: '#000000',
  },
}
SCSS
$custom: #af25a9;
$custom-light: #cb71c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a9",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 302.609,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53973,
    "c": 0.21978,
    "h": 330.1
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#AF25A9
secondary
#69C76D
accent
#E84740
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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