#AF25B2#AF25B2

#AF25B2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.226 H 327.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF25B2
RGBrgb(175, 37, 178)
HSLhsl(299, 66%, 42%)
HSVhsv(299, 79%, 70%)
CMYKcmyk(1.7%, 79.2%, 0%, 30.2%)
CIE-LABlab(43.73, 68.67, -44.15)
CIE-LCHlch(43.73, 81.64, 327.26°)
OKLaboklab(54.5% 0.1902 -0.1227)
OKLCHoklch(54.5% 0.226 327.2)
XYZxyz(26.3762, 13.6534, 43.3570)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25B2 #28B225
analogous
#6825B2 #AF25B2 #B2256F
triadic
#AF25B2 #B2AF25 #25B2AF
tetradic
#AF25B2 #B26825 #28B225 #256FB2
square
#AF25B2 #B26825 #28B225 #256FB2
split-complementary
#AF25B2 #6FB225 #25B268
monochromatic
#4B104D #7D1A7F #AF25B2 #D43DD7 #DF70E1

Accessibility & contrast

On white

5.63
#AF25B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF25B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25B2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25B2#FFFFFF#000000##FFFFFF
##AF25B21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#4C6DAF
Tritanopia (blue-blind)
#B43F6C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af25b2;
/* rgb */ color: rgb(175, 37, 178);
/* oklch */ color: oklch(54.5% 0.226 327.2);
Tailwind
colors: {
  custom: {
    50: '#cb71c9',
    500: '#af25b2',
    950: '#000000',
  },
}
SCSS
$custom: #af25b2;
$custom-light: #cb71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af25b2",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 298.723,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54504,
    "c": 0.22637,
    "h": 327.2
  },
  "luminance": 0.13651
}

Semantic roles & 50–950 ramp

primary
#AF25B2
secondary
#6DC86B
accent
#E93F43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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