#AF2E98#AF2E98

#AF2E98 is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.7% C 0.199 H 336.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF2E98
RGBrgb(175, 46, 152)
HSLhsl(311, 58%, 43%)
HSVhsv(311, 74%, 69%)
CMYKcmyk(0%, 73.7%, 13.1%, 31.4%)
CIE-LABlab(43.27, 61.98, -29.38)
CIE-LCHlch(43.27, 68.59, 334.64°)
OKLaboklab(53.72% 0.1819 -0.0801)
OKLCHoklch(53.72% 0.199 336.2)
XYZxyz(24.3241, 13.3372, 30.9929)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E98 #2EAF45
analogous
#852EAF #AF2E98 #AF2E57
triadic
#AF2E98 #98AF2E #2E98AF
tetradic
#AF2E98 #AF852E #2EAF45 #2E57AF
square
#AF2E98 #AF852E #2EAF45 #2E57AF
split-complementary
#AF2E98 #57AF2E #2EAF85
monochromatic
#4E1544 #7F216E #AF2E98 #D04BB8 #DC7BCB

Accessibility & contrast

On white

5.73
#AF2E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF2E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E98
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E98#FFFFFF#000000##FFFFFF
##AF2E981.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305A9B
Deuteranopia (green-blind)
#5D6D95
Tritanopia (blue-blind)
#B83760
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2e98;
/* rgb */ color: rgb(175, 46, 152);
/* oklch */ color: oklch(53.7% 0.199 336.2);
Tailwind
colors: {
  custom: {
    50: '#cb74b6',
    500: '#af2e98',
    950: '#000000',
  },
}
SCSS
$custom: #af2e98;
$custom-light: #cb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e98",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 310.698,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53722,
    "c": 0.19876,
    "h": 336.2
  },
  "luminance": 0.13335
}

Semantic roles & 50–950 ramp

primary
#AF2E98
secondary
#74C582
accent
#E26246
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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