#AF25E2#AF25E2

#AF25E2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.7% C 0.263 H 314.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF25E2
RGBrgb(175, 37, 226)
HSLhsl(284, 77%, 52%)
HSVhsv(284, 84%, 89%)
CMYKcmyk(22.6%, 83.6%, 0%, 11.4%)
CIE-LABlab(46.88, 77.03, -66.89)
CIE-LCHlch(46.88, 102.02, 319.03°)
OKLaboklab(57.72% 0.1832 -0.1893)
OKLCHoklch(57.72% 0.263 314.1)
XYZxyz(32.0659, 15.9292, 73.3223)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25E2 #58E225
analogous
#5125E2 #AF25E2 #E225B6
triadic
#AF25E2 #E2AF25 #25E2AF
tetradic
#AF25E2 #E25125 #58E225 #25B6E2
square
#AF25E2 #E25125 #58E225 #25B6E2
split-complementary
#AF25E2 #B6E225 #25E251
monochromatic
#5F117C #8818B2 #AF25E2 #C35BE9 #D791F0

Accessibility & contrast

On white

5.02
#AF25E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AF25E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25E2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25E2#FFFFFF#000000##FFFFFF
##AF25E21.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#AA5788
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af25e2;
/* rgb */ color: rgb(175, 37, 226);
/* oklch */ color: oklch(57.7% 0.263 314.1);
Tailwind
colors: {
  custom: {
    50: '#cc74ec',
    500: '#af25e2',
    950: '#000000',
  },
}
SCSS
$custom: #af25e2;
$custom-light: #cc74ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af25e2",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 226
  },
  "hsl": {
    "h": 283.81,
    "s": 76.518,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57716,
    "c": 0.26342,
    "h": 314.1
  },
  "luminance": 0.15928
}

Semantic roles & 50–950 ramp

primary
#AF25E2
secondary
#9EDB88
accent
#F33568
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #AF25E2

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

Preview Lab → · Contrast checker → · Palette generator →

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