#AF248A#AF248A

#AF248A is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.3% C 0.200 H 341.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AF248A
RGBrgb(175, 36, 138)
HSLhsl(316, 66%, 41%)
HSVhsv(316, 79%, 69%)
CMYKcmyk(0%, 79.4%, 21.1%, 31.4%)
CIE-LABlab(41.55, 63.05, -23.55)
CIE-LCHlch(41.55, 67.30, 339.52°)
OKLaboklab(52.27% 0.1894 -0.0634)
OKLCHoklch(52.27% 0.2 341.5)
XYZxyz(22.8983, 12.2131, 25.1913)
Luminance0.1221 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF248A #24AF49
analogous
#8F24AF #AF248A #AF2445
triadic
#AF248A #8AAF24 #248AAF
tetradic
#AF248A #AF8F24 #24AF49 #2445AF
square
#AF248A #AF8F24 #24AF49 #2445AF
split-complementary
#AF248A #45AF24 #24AF8F
monochromatic
#490F3A #7C1A62 #AF248A #D63AAD #E16DC2

Accessibility & contrast

On white

6.10
#AF248A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF248A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF248A
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF248A#FFFFFF#000000##FFFFFF
##AF248A1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#BA2755
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af248a;
/* rgb */ color: rgb(175, 36, 138);
/* oklch */ color: oklch(52.3% 0.200 341.5);
Tailwind
colors: {
  custom: {
    50: '#cb6fac',
    500: '#af248a',
    950: '#000000',
  },
}
SCSS
$custom: #af248a;
$custom-light: #cb6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#af248a",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 315.971,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52271,
    "c": 0.19969,
    "h": 341.5
  },
  "luminance": 0.12211
}

Semantic roles & 50–950 ramp

primary
#AF248A
secondary
#68C781
accent
#E96C3F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF248A

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

Preview Lab → · Contrast checker → · Palette generator →

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