#AF2E8E#AF2E8E

#AF2E8E is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.2% C 0.192 H 340.2°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF2E8E
RGBrgb(175, 46, 142)
HSLhsl(315, 58%, 43%)
HSVhsv(315, 74%, 69%)
CMYKcmyk(0%, 73.7%, 18.9%, 31.4%)
CIE-LABlab(42.80, 60.55, -24.06)
CIE-LCHlch(42.80, 65.16, 338.33°)
OKLaboklab(53.23% 0.1807 -0.0649)
OKLCHoklch(53.23% 0.192 340.2)
XYZxyz(23.5393, 13.0233, 26.8600)
Luminance0.1302 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E8E #2EAF4F
analogous
#8F2EAF #AF2E8E #AF2E4D
triadic
#AF2E8E #8EAF2E #2E8EAF
tetradic
#AF2E8E #AF8F2E #2EAF4F #2E4DAF
square
#AF2E8E #AF8F2E #2EAF4F #2E4DAF
split-complementary
#AF2E8E #4DAF2E #2EAF8F
monochromatic
#4E153F #7F2167 #AF2E8E #D04BAE #DC7BC3

Accessibility & contrast

On white

5.83
#AF2E8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF2E8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E8E
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E8E#FFFFFF#000000##FFFFFF
##AF2E8E1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375891
Deuteranopia (green-blind)
#616C8B
Tritanopia (blue-blind)
#B9325A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2e8e;
/* rgb */ color: rgb(175, 46, 142);
/* oklch */ color: oklch(53.2% 0.192 340.2);
Tailwind
colors: {
  custom: {
    50: '#cb73af',
    500: '#af2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #af2e8e;
$custom-light: #cb73af;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e8e",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 315.349,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5323,
    "c": 0.192,
    "h": 340.2
  },
  "luminance": 0.13021
}

Semantic roles & 50–950 ramp

primary
#AF2E8E
secondary
#74C589
accent
#E26E46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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