#AF25A4#AF25A4

#AF25A4 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.216 H 331.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF25A4
RGBrgb(175, 37, 164)
HSLhsl(305, 65%, 42%)
HSVhsv(305, 79%, 69%)
CMYKcmyk(0%, 78.9%, 6.3%, 31.4%)
CIE-LABlab(42.94, 66.47, -37.09)
CIE-LCHlch(42.94, 76.12, 330.84°)
OKLaboklab(53.69% 0.1905 -0.1022)
OKLCHoklch(53.69% 0.216 331.8)
XYZxyz(25.0417, 13.1195, 36.3282)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A4 #25AF30
analogous
#7525AF #AF25A4 #AF255F
triadic
#AF25A4 #A4AF25 #25A4AF
tetradic
#AF25A4 #AF7525 #25AF30 #255FAF
square
#AF25A4 #AF7525 #25AF30 #255FAF
split-complementary
#AF25A4 #5FAF25 #25AF75
monochromatic
#4A1045 #7C1A75 #AF25A4 #D63CC9 #E06ED7

Accessibility & contrast

On white

5.80
#AF25A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF25A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A4
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A4#FFFFFF#000000##FFFFFF
##AF25A41.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#B63764
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af25a4;
/* rgb */ color: rgb(175, 37, 164);
/* oklch */ color: oklch(53.7% 0.216 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb71bf',
    500: '#af25a4',
    950: '#000000',
  },
}
SCSS
$custom: #af25a4;
$custom-light: #cb71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a4",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 304.783,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53689,
    "c": 0.21619,
    "h": 331.8
  },
  "luminance": 0.13117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF25A4

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

Preview Lab → · Contrast checker → · Palette generator →

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