#AF248E#AF248E

#AF248E is a mid, highly saturated pink. Relative luminance 0.123; OKLCH L 52.5% C 0.202 H 339.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF248E
RGBrgb(175, 36, 142)
HSLhsl(314, 66%, 41%)
HSVhsv(314, 79%, 69%)
CMYKcmyk(0%, 79.4%, 18.9%, 31.4%)
CIE-LABlab(41.74, 63.58, -25.71)
CIE-LCHlch(41.74, 68.58, 337.99°)
OKLaboklab(52.46% 0.1899 -0.0695)
OKLCHoklch(52.46% 0.202 339.9)
XYZxyz(23.1932, 12.3311, 26.7446)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF248E #24AF45
analogous
#8B24AF #AF248E #AF2448
triadic
#AF248E #8EAF24 #248EAF
tetradic
#AF248E #AF8B24 #24AF45 #2448AF
square
#AF248E #AF8B24 #24AF45 #2448AF
split-complementary
#AF248E #48AF24 #24AF8B
monochromatic
#490F3C #7C1A65 #AF248E #D63AB1 #E16DC5

Accessibility & contrast

On white

6.06
#AF248E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF248E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF248E
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF248E#FFFFFF#000000##FFFFFF
##AF248E1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#5E6A8B
Tritanopia (blue-blind)
#BA2A57
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af248e;
/* rgb */ color: rgb(175, 36, 142);
/* oklch */ color: oklch(52.5% 0.202 339.9);
Tailwind
colors: {
  custom: {
    50: '#cb6faf',
    500: '#af248e',
    950: '#000000',
  },
}
SCSS
$custom: #af248e;
$custom-light: #cb6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#af248e",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 314.245,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52464,
    "c": 0.2022,
    "h": 339.9
  },
  "luminance": 0.12329
}

Semantic roles & 50–950 ramp

primary
#AF248E
secondary
#68C77E
accent
#E9673F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF248E

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

Preview Lab → · Contrast checker → · Palette generator →

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