#AF2E6C#AF2E6C

#AF2E6C is a mid, vivid pink. Relative luminance 0.122; OKLCH L 51.8% C 0.173 H 355.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF2E6C
RGBrgb(175, 46, 108)
HSLhsl(331, 58%, 43%)
HSVhsv(331, 74%, 69%)
CMYKcmyk(0%, 73.7%, 38.3%, 31.4%)
CIE-LABlab(41.46, 56.34, -5.15)
CIE-LCHlch(41.46, 56.58, 354.78°)
OKLaboklab(51.82% 0.1729 -0.0128)
OKLCHoklch(51.82% 0.173 355.7)
XYZxyz(21.3644, 12.1533, 15.4052)
Luminance0.1215 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E6C #2EAF71
analogous
#AF2EAC #AF2E6C #AF312E
triadic
#AF2E6C #6CAF2E #2E6CAF
tetradic
#AF2E6C #ACAF2E #2EAF71 #312EAF
square
#AF2E6C #ACAF2E #2EAF71 #312EAF
split-complementary
#AF2E6C #2EAF31 #2EACAF
monochromatic
#4E1530 #7F214E #AF2E6C #D04B8B #DC7BAA

Accessibility & contrast

On white

6.12
#AF2E6C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF2E6C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E6C
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E6C#FFFFFF#000000##FFFFFF
##AF2E6C1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47536E
Deuteranopia (green-blind)
#6B6A69
Tritanopia (blue-blind)
#BD1F49
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2e6c;
/* rgb */ color: rgb(175, 46, 108);
/* oklch */ color: oklch(51.8% 0.173 355.7);
Tailwind
colors: {
  custom: {
    50: '#cc7296',
    500: '#af2e6c',
    950: '#000000',
  },
}
SCSS
$custom: #af2e6c;
$custom-light: #cc7296;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e6c",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 108
  },
  "hsl": {
    "h": 331.163,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.17338,
    "h": 355.7
  },
  "luminance": 0.12151
}

Semantic roles & 50–950 ramp

primary
#AF2E6C
secondary
#74C59E
accent
#E29746
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF2E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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