#AF249C#AF249C

#AF249C is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.211 H 334.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF249C
RGBrgb(175, 36, 156)
HSLhsl(308, 66%, 41%)
HSVhsv(308, 79%, 69%)
CMYKcmyk(0%, 79.4%, 10.9%, 31.4%)
CIE-LABlab(42.43, 65.55, -33.11)
CIE-LCHlch(42.43, 73.43, 333.20°)
OKLaboklab(53.18% 0.1911 -0.0907)
OKLCHoklch(53.18% 0.211 334.6)
XYZxyz(24.3111, 12.7782, 32.6321)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF249C #24AF37
analogous
#7D24AF #AF249C #AF2457
triadic
#AF249C #9CAF24 #249CAF
tetradic
#AF249C #AF7D24 #24AF37 #2457AF
square
#AF249C #AF7D24 #24AF37 #2457AF
split-complementary
#AF249C #57AF24 #24AF7D
monochromatic
#490F42 #7C1A6F #AF249C #D63AC1 #E16DD1

Accessibility & contrast

On white

5.91
#AF249C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF249C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF249C
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF249C#FFFFFF#000000##FFFFFF
##AF249C1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22579F
Deuteranopia (green-blind)
#586B99
Tritanopia (blue-blind)
#B8325F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af249c;
/* rgb */ color: rgb(175, 36, 156);
/* oklch */ color: oklch(53.2% 0.211 334.6);
Tailwind
colors: {
  custom: {
    50: '#cb70b9',
    500: '#af249c',
    950: '#000000',
  },
}
SCSS
$custom: #af249c;
$custom-light: #cb70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af249c",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 308.201,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53183,
    "c": 0.21148,
    "h": 334.6
  },
  "luminance": 0.12776
}

Semantic roles & 50–950 ramp

primary
#AF249C
secondary
#68C775
accent
#E9563F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #AF249C

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

Preview Lab → · Contrast checker → · Palette generator →

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