#AF24A7#AF24A7

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

Color values

HEX#AF24A7
RGBrgb(175, 36, 167)
HSLhsl(303, 66%, 41%)
HSVhsv(303, 79%, 69%)
CMYKcmyk(0%, 79.4%, 4.6%, 31.4%)
CIE-LABlab(43.02, 67.20, -38.77)
CIE-LCHlch(43.02, 77.58, 330.02°)
OKLaboklab(53.79% 0.1913 -0.107)
OKLCHoklch(53.79% 0.219 330.8)
XYZxyz(25.2851, 13.1678, 37.7617)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A7 #24AF2C
analogous
#7224AF #AF24A7 #AF2462
triadic
#AF24A7 #A7AF24 #24A7AF
tetradic
#AF24A7 #AF7224 #24AF2C #2462AF
square
#AF24A7 #AF7224 #24AF2C #2462AF
split-complementary
#AF24A7 #62AF24 #24AF72
monochromatic
#490F46 #7C1A77 #AF24A7 #D63ACD #E16DDA

Accessibility & contrast

On white

5.78
#AF24A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF24A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A7#FFFFFF#000000##FFFFFF
##AF24A71.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B63866
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af24a7;
/* rgb */ color: rgb(175, 36, 167);
/* oklch */ color: oklch(53.8% 0.219 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb70c1',
    500: '#af24a7',
    950: '#000000',
  },
}
SCSS
$custom: #af24a7;
$custom-light: #cb70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a7",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 303.453,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53793,
    "c": 0.2192,
    "h": 330.8
  },
  "luminance": 0.13166
}

Semantic roles & 50–950 ramp

primary
#AF24A7
secondary
#68C76D
accent
#E9493F
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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