#AF2E94#AF2E94

#AF2E94 is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.5% C 0.196 H 337.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF2E94
RGBrgb(175, 46, 148)
HSLhsl(313, 58%, 43%)
HSVhsv(313, 74%, 69%)
CMYKcmyk(0%, 73.7%, 15.4%, 31.4%)
CIE-LABlab(43.08, 61.40, -27.26)
CIE-LCHlch(43.08, 67.18, 336.06°)
OKLaboklab(53.52% 0.1815 -0.074)
OKLCHoklch(53.52% 0.196 337.8)
XYZxyz(24.0020, 13.2083, 29.2966)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E94 #2EAF49
analogous
#892EAF #AF2E94 #AF2E53
triadic
#AF2E94 #94AF2E #2E94AF
tetradic
#AF2E94 #AF892E #2EAF49 #2E53AF
square
#AF2E94 #AF892E #2EAF49 #2E53AF
split-complementary
#AF2E94 #53AF2E #2EAF89
monochromatic
#4E1542 #7F216B #AF2E94 #D04BB4 #DC7BC8

Accessibility & contrast

On white

5.77
#AF2E94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF2E94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E94
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E94#FFFFFF#000000##FFFFFF
##AF2E941.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335997
Deuteranopia (green-blind)
#5F6D91
Tritanopia (blue-blind)
#B9355E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2e94;
/* rgb */ color: rgb(175, 46, 148);
/* oklch */ color: oklch(53.5% 0.196 337.8);
Tailwind
colors: {
  custom: {
    50: '#cb73b3',
    500: '#af2e94',
    950: '#000000',
  },
}
SCSS
$custom: #af2e94;
$custom-light: #cb73b3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e94",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 312.558,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53521,
    "c": 0.196,
    "h": 337.8
  },
  "luminance": 0.13206
}

Semantic roles & 50–950 ramp

primary
#AF2E94
secondary
#74C585
accent
#E26746
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E94

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

Preview Lab → · Contrast checker → · Palette generator →

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