#AF2E8B#AF2E8B

#AF2E8B is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.1% C 0.190 H 341.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF2E8B
RGBrgb(175, 46, 139)
HSLhsl(317, 58%, 43%)
HSVhsv(317, 74%, 69%)
CMYKcmyk(0%, 73.7%, 20.6%, 31.4%)
CIE-LABlab(42.66, 60.14, -22.44)
CIE-LCHlch(42.66, 64.19, 339.54°)
OKLaboklab(53.09% 0.1802 -0.0603)
OKLCHoklch(53.09% 0.19 341.5)
XYZxyz(23.3171, 12.9344, 25.6897)
Luminance0.1293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E8B #2EAF52
analogous
#922EAF #AF2E8B #AF2E4A
triadic
#AF2E8B #8BAF2E #2E8BAF
tetradic
#AF2E8B #AF922E #2EAF52 #2E4AAF
square
#AF2E8B #AF922E #2EAF52 #2E4AAF
split-complementary
#AF2E8B #4AAF2E #2EAF92
monochromatic
#4E153E #7F2165 #AF2E8B #D04BAA #DC7BC1

Accessibility & contrast

On white

5.86
#AF2E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2E8B
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E8B#FFFFFF#000000##FFFFFF
##AF2E8B1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578E
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#BA3059
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2e8b;
/* rgb */ color: rgb(175, 46, 139);
/* oklch */ color: oklch(53.1% 0.190 341.5);
Tailwind
colors: {
  custom: {
    50: '#cb73ad',
    500: '#af2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #af2e8b;
$custom-light: #cb73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e8b",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 316.744,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53089,
    "c": 0.19005,
    "h": 341.5
  },
  "luminance": 0.12932
}

Semantic roles & 50–950 ramp

primary
#AF2E8B
secondary
#74C58B
accent
#E27246
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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