#AF25A6#AF25A6

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

Color values

HEX#AF25A6
RGBrgb(175, 37, 166)
HSLhsl(304, 65%, 42%)
HSVhsv(304, 79%, 69%)
CMYKcmyk(0%, 78.9%, 5.1%, 31.4%)
CIE-LABlab(43.05, 66.78, -38.11)
CIE-LCHlch(43.05, 76.89, 330.29°)
OKLaboklab(53.8% 0.1905 -0.1051)
OKLCHoklch(53.8% 0.218 331.1)
XYZxyz(25.2237, 13.1924, 37.2869)
Luminance0.1319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A6 #25AF2E
analogous
#7325AF #AF25A6 #AF2561
triadic
#AF25A6 #A6AF25 #25A6AF
tetradic
#AF25A6 #AF7325 #25AF2E #2561AF
square
#AF25A6 #AF7325 #25AF2E #2561AF
split-complementary
#AF25A6 #61AF25 #25AF73
monochromatic
#4A1046 #7C1A76 #AF25A6 #D63CCC #E06ED9

Accessibility & contrast

On white

5.77
#AF25A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF25A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A6
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A6#FFFFFF#000000##FFFFFF
##AF25A61.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AA9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#B63865
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af25a6;
/* rgb */ color: rgb(175, 37, 166);
/* oklch */ color: oklch(53.8% 0.218 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c1',
    500: '#af25a6',
    950: '#000000',
  },
}
SCSS
$custom: #af25a6;
$custom-light: #cb71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a6",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 303.913,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53802,
    "c": 0.21762,
    "h": 331.1
  },
  "luminance": 0.1319
}

Semantic roles & 50–950 ramp

primary
#AF25A6
secondary
#69C76F
accent
#E84B40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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