#AF2E8C#AF2E8C

#AF2E8C is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.1% C 0.191 H 341.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF2E8C
RGBrgb(175, 46, 140)
HSLhsl(316, 58%, 43%)
HSVhsv(316, 74%, 69%)
CMYKcmyk(0%, 73.7%, 20%, 31.4%)
CIE-LABlab(42.71, 60.28, -22.98)
CIE-LCHlch(42.71, 64.51, 339.13°)
OKLaboklab(53.14% 0.1804 -0.0619)
OKLCHoklch(53.14% 0.191 341.1)
XYZxyz(23.3905, 12.9637, 26.0763)
Luminance0.1296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E8C #2EAF51
analogous
#912EAF #AF2E8C #AF2E4B
triadic
#AF2E8C #8CAF2E #2E8CAF
tetradic
#AF2E8C #AF912E #2EAF51 #2E4BAF
square
#AF2E8C #AF912E #2EAF51 #2E4BAF
split-complementary
#AF2E8C #4BAF2E #2EAF91
monochromatic
#4E153E #7F2165 #AF2E8C #D04BAC #DC7BC2

Accessibility & contrast

On white

5.85
#AF2E8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2E8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E8C
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E8C#FFFFFF#000000##FFFFFF
##AF2E8C1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39588F
Deuteranopia (green-blind)
#626C89
Tritanopia (blue-blind)
#BA3159
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2e8c;
/* rgb */ color: rgb(175, 46, 140);
/* oklch */ color: oklch(53.1% 0.191 341.1);
Tailwind
colors: {
  custom: {
    50: '#cb73ae',
    500: '#af2e8c',
    950: '#000000',
  },
}
SCSS
$custom: #af2e8c;
$custom-light: #cb73ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e8c",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 140
  },
  "hsl": {
    "h": 316.279,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53136,
    "c": 0.19069,
    "h": 341.1
  },
  "luminance": 0.12961
}

Semantic roles & 50–950 ramp

primary
#AF2E8C
secondary
#74C58A
accent
#E27046
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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