#AF25A0#AF25A0

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

Color values

HEX#AF25A0
RGBrgb(175, 37, 160)
HSLhsl(307, 65%, 42%)
HSVhsv(307, 79%, 69%)
CMYKcmyk(0%, 78.9%, 8.6%, 31.4%)
CIE-LABlab(42.73, 65.87, -35.03)
CIE-LCHlch(42.73, 74.61, 331.99°)
OKLaboklab(53.47% 0.1904 -0.0962)
OKLCHoklch(53.47% 0.213 333.2)
XYZxyz(24.6861, 12.9773, 34.4556)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A0 #25AF34
analogous
#7925AF #AF25A0 #AF255B
triadic
#AF25A0 #A0AF25 #25A0AF
tetradic
#AF25A0 #AF7925 #25AF34 #255BAF
square
#AF25A0 #AF7925 #25AF34 #255BAF
split-complementary
#AF25A0 #5BAF25 #25AF79
monochromatic
#4A1044 #7C1A72 #AF25A0 #D63CC5 #E06ED4

Accessibility & contrast

On white

5.84
#AF25A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF25A0
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A0#FFFFFF#000000##FFFFFF
##AF25A01.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af25a0;
/* rgb */ color: rgb(175, 37, 160);
/* oklch */ color: oklch(53.5% 0.213 333.2);
Tailwind
colors: {
  custom: {
    50: '#cb70bc',
    500: '#af25a0',
    950: '#000000',
  },
}
SCSS
$custom: #af25a0;
$custom-light: #cb70bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a0",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 306.522,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53467,
    "c": 0.21336,
    "h": 333.2
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#AF25A0
secondary
#69C773
accent
#E85240
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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