#AF25A2#AF25A2

#AF25A2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.215 H 332.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF25A2
RGBrgb(175, 37, 162)
HSLhsl(306, 65%, 42%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 78.9%, 7.4%, 31.4%)
CIE-LABlab(42.84, 66.17, -36.06)
CIE-LCHlch(42.84, 75.36, 331.41°)
OKLaboklab(53.58% 0.1905 -0.0992)
OKLCHoklch(53.58% 0.215 332.5)
XYZxyz(24.8625, 13.0479, 35.3845)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25A2 #25AF32
analogous
#7725AF #AF25A2 #AF255D
triadic
#AF25A2 #A2AF25 #25A2AF
tetradic
#AF25A2 #AF7725 #25AF32 #255DAF
square
#AF25A2 #AF7725 #25AF32 #255DAF
split-complementary
#AF25A2 #5DAF25 #25AF77
monochromatic
#4A1044 #7C1A73 #AF25A2 #D63CC7 #E06ED6

Accessibility & contrast

On white

5.82
#AF25A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF25A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25A2
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25A2#FFFFFF#000000##FFFFFF
##AF25A21.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B59A5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B73663
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af25a2;
/* rgb */ color: rgb(175, 37, 162);
/* oklch */ color: oklch(53.6% 0.215 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb71be',
    500: '#af25a2',
    950: '#000000',
  },
}
SCSS
$custom: #af25a2;
$custom-light: #cb71be;
$custom-dark: #000000;
JSON
{
  "hex": "#af25a2",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 305.652,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53577,
    "c": 0.21477,
    "h": 332.5
  },
  "luminance": 0.13046
}

Semantic roles & 50–950 ramp

primary
#AF25A2
secondary
#69C772
accent
#E85040
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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