#AF25A1#AF25A1

#AF25A1 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.214 H 332.8°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF25A1
RGBrgb(175, 37, 161)
HSLhsl(306, 65%, 42%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 78.9%, 8%, 31.4%)
CIE-LABlab(42.78, 66.02, -35.55)
CIE-LCHlch(42.78, 74.98, 331.70°)
OKLaboklab(53.52% 0.1905 -0.0977)
OKLCHoklch(53.52% 0.214 332.8)
XYZxyz(24.7739, 13.0125, 34.9182)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A1 #25AF33
analogous
#7825AF #AF25A1 #AF255C
triadic
#AF25A1 #A1AF25 #25A1AF
tetradic
#AF25A1 #AF7825 #25AF33 #255CAF
square
#AF25A1 #AF7825 #25AF33 #255CAF
split-complementary
#AF25A1 #5CAF25 #25AF78
monochromatic
#4A1044 #7C1A73 #AF25A1 #D63CC6 #E06ED5

Accessibility & contrast

On white

5.83
#AF25A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF25A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A1
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A1#FFFFFF#000000##FFFFFF
##AF25A11.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C59A4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#B73562
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af25a1;
/* rgb */ color: rgb(175, 37, 161);
/* oklch */ color: oklch(53.5% 0.214 332.8);
Tailwind
colors: {
  custom: {
    50: '#cb71bd',
    500: '#af25a1',
    950: '#000000',
  },
}
SCSS
$custom: #af25a1;
$custom-light: #cb71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a1",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 161
  },
  "hsl": {
    "h": 306.087,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53522,
    "c": 0.21407,
    "h": 332.8
  },
  "luminance": 0.1301
}

Semantic roles & 50–950 ramp

primary
#AF25A1
secondary
#69C772
accent
#E85140
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A1

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

Preview Lab → · Contrast checker → · Palette generator →

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