#AF25A7#AF25A7

#AF25A7 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.218 H 330.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF25A7
RGBrgb(175, 37, 167)
HSLhsl(303, 65%, 42%)
HSVhsv(303, 79%, 69%)
CMYKcmyk(0%, 78.9%, 4.6%, 31.4%)
CIE-LABlab(43.11, 66.93, -38.62)
CIE-LCHlch(43.11, 77.28, 330.01°)
OKLaboklab(53.86% 0.1905 -0.1066)
OKLCHoklch(53.86% 0.218 330.8)
XYZxyz(25.3158, 13.2292, 37.7719)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A7 #25AF2D
analogous
#7225AF #AF25A7 #AF2562
triadic
#AF25A7 #A7AF25 #25A7AF
tetradic
#AF25A7 #AF7225 #25AF2D #2562AF
square
#AF25A7 #AF7225 #25AF2D #2562AF
split-complementary
#AF25A7 #62AF25 #25AF72
monochromatic
#4A1047 #7C1A77 #AF25A7 #D63CCD #E06EDA

Accessibility & contrast

On white

5.76
#AF25A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF25A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A7#FFFFFF#000000##FFFFFF
##AF25A71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B63966
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af25a7;
/* rgb */ color: rgb(175, 37, 167);
/* oklch */ color: oklch(53.9% 0.218 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb71c1',
    500: '#af25a7',
    950: '#000000',
  },
}
SCSS
$custom: #af25a7;
$custom-light: #cb71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a7",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 303.478,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53858,
    "c": 0.21834,
    "h": 330.8
  },
  "luminance": 0.13227
}

Semantic roles & 50–950 ramp

primary
#AF25A7
secondary
#69C76E
accent
#E84940
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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