#AF2E8F#AF2E8F

#AF2E8F is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.193 H 339.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF2E8F
RGBrgb(175, 46, 143)
HSLhsl(315, 58%, 43%)
HSVhsv(315, 74%, 69%)
CMYKcmyk(0%, 73.7%, 18.3%, 31.4%)
CIE-LABlab(42.84, 60.69, -24.59)
CIE-LCHlch(42.84, 65.49, 337.94°)
OKLaboklab(53.28% 0.1808 -0.0664)
OKLCHoklch(53.28% 0.193 339.8)
XYZxyz(23.6148, 13.0534, 27.2572)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E8F #2EAF4E
analogous
#8E2EAF #AF2E8F #AF2E4E
triadic
#AF2E8F #8FAF2E #2E8FAF
tetradic
#AF2E8F #AF8E2E #2EAF4E #2E4EAF
square
#AF2E8F #AF8E2E #2EAF4E #2E4EAF
split-complementary
#AF2E8F #4EAF2E #2EAF8E
monochromatic
#4E1540 #7F2167 #AF2E8F #D04BAF #DC7BC4

Accessibility & contrast

On white

5.82
#AF2E8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF2E8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E8F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E8F#FFFFFF#000000##FFFFFF
##AF2E8F1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375892
Deuteranopia (green-blind)
#616D8C
Tritanopia (blue-blind)
#B9325B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2e8f;
/* rgb */ color: rgb(175, 46, 143);
/* oklch */ color: oklch(53.3% 0.193 339.8);
Tailwind
colors: {
  custom: {
    50: '#cb73b0',
    500: '#af2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #af2e8f;
$custom-light: #cb73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e8f",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 314.884,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53278,
    "c": 0.19265,
    "h": 339.8
  },
  "luminance": 0.13051
}

Semantic roles & 50–950 ramp

primary
#AF2E8F
secondary
#74C588
accent
#E26D46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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