#AF2E54#AF2E54

#AF2E54 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.1% C 0.166 H 7.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF2E54
RGBrgb(175, 46, 84)
HSLhsl(342, 58%, 43%)
HSVhsv(342, 74%, 69%)
CMYKcmyk(0%, 73.7%, 52%, 31.4%)
CIE-LABlab(40.75, 54.05, 8.90)
CIE-LCHlch(40.75, 54.77, 9.35°)
OKLaboklab(51.07% 0.1646 0.0229)
OKLCHoklch(51.07% 0.166 7.9)
XYZxyz(20.2582, 11.7108, 9.5794)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E54 #2EAF89
analogous
#AF2E94 #AF2E54 #AF492E
triadic
#AF2E54 #54AF2E #2E54AF
tetradic
#AF2E54 #94AF2E #2EAF89 #492EAF
square
#AF2E54 #94AF2E #2EAF89 #492EAF
split-complementary
#AF2E54 #2EAF49 #2E94AF
monochromatic
#4E1525 #7F213D #AF2E54 #D04B72 #DC7B98

Accessibility & contrast

On white

6.28
#AF2E54 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF2E54 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E54
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E54#FFFFFF#000000##FFFFFF
##AF2E541.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5055
Deuteranopia (green-blind)
#706951
Tritanopia (blue-blind)
#BF0F3E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2e54;
/* rgb */ color: rgb(175, 46, 84);
/* oklch */ color: oklch(51.1% 0.166 7.9);
Tailwind
colors: {
  custom: {
    50: '#cd7183',
    500: '#af2e54',
    950: '#000000',
  },
}
SCSS
$custom: #af2e54;
$custom-light: #cd7183;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e54",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 84
  },
  "hsl": {
    "h": 342.326,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51065,
    "c": 0.16614,
    "h": 7.9
  },
  "luminance": 0.11708
}

Semantic roles & 50–950 ramp

primary
#AF2E54
secondary
#74C5AD
accent
#E2B446
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2E54

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

Preview Lab → · Contrast checker → · Palette generator →

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