#AF25A8#AF25A8

#AF25A8 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.219 H 330.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF25A8
RGBrgb(175, 37, 168)
HSLhsl(303, 65%, 42%)
HSVhsv(303, 79%, 69%)
CMYKcmyk(0%, 78.9%, 4%, 31.4%)
CIE-LABlab(43.16, 67.09, -39.13)
CIE-LCHlch(43.16, 77.66, 329.75°)
OKLaboklab(53.92% 0.1905 -0.1081)
OKLCHoklch(53.92% 0.219 330.4)
XYZxyz(25.4086, 13.2663, 38.2606)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A8 #25AF2C
analogous
#7125AF #AF25A8 #AF2563
triadic
#AF25A8 #A8AF25 #25A8AF
tetradic
#AF25A8 #AF7125 #25AF2C #2563AF
square
#AF25A8 #AF7125 #25AF2C #2563AF
split-complementary
#AF25A8 #63AF25 #25AF71
monochromatic
#4A1047 #7C1A78 #AF25A8 #D63CCE #E06EDB

Accessibility & contrast

On white

5.75
#AF25A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF25A8
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A8#FFFFFF#000000##FFFFFF
##AF25A81.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5AAB
Deuteranopia (green-blind)
#526CA5
Tritanopia (blue-blind)
#B63966
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af25a8;
/* rgb */ color: rgb(175, 37, 168);
/* oklch */ color: oklch(53.9% 0.219 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb71c2',
    500: '#af25a8',
    950: '#000000',
  },
}
SCSS
$custom: #af25a8;
$custom-light: #cb71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a8",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 303.043,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53916,
    "c": 0.21906,
    "h": 330.4
  },
  "luminance": 0.13264
}

Semantic roles & 50–950 ramp

primary
#AF25A8
secondary
#69C76E
accent
#E84840
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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