#AF25A5#AF25A5

#AF25A5 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.217 H 331.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF25A5
RGBrgb(175, 37, 165)
HSLhsl(304, 65%, 42%)
HSVhsv(304, 79%, 69%)
CMYKcmyk(0%, 78.9%, 5.7%, 31.4%)
CIE-LABlab(43.00, 66.63, -37.60)
CIE-LCHlch(43.00, 76.50, 330.56°)
OKLaboklab(53.75% 0.1905 -0.1037)
OKLCHoklch(53.75% 0.217 331.4)
XYZxyz(25.1323, 13.1558, 36.8057)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A5 #25AF2F
analogous
#7425AF #AF25A5 #AF2560
triadic
#AF25A5 #A5AF25 #25A5AF
tetradic
#AF25A5 #AF7425 #25AF2F #2560AF
square
#AF25A5 #AF7425 #25AF2F #2560AF
split-complementary
#AF25A5 #60AF25 #25AF74
monochromatic
#4A1046 #7C1A75 #AF25A5 #D63CCB #E06ED8

Accessibility & contrast

On white

5.78
#AF25A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF25A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A5
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A5#FFFFFF#000000##FFFFFF
##AF25A51.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#546CA2
Tritanopia (blue-blind)
#B63865
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af25a5;
/* rgb */ color: rgb(175, 37, 165);
/* oklch */ color: oklch(53.7% 0.217 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb71c0',
    500: '#af25a5',
    950: '#000000',
  },
}
SCSS
$custom: #af25a5;
$custom-light: #cb71c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a5",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 304.348,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53745,
    "c": 0.2169,
    "h": 331.4
  },
  "luminance": 0.13154
}

Semantic roles & 50–950 ramp

primary
#AF25A5
secondary
#69C770
accent
#E84C40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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