#AF4B98#AF4B98

#AF4B98 is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.8% C 0.159 H 337.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF4B98
RGBrgb(175, 75, 152)
HSLhsl(314, 40%, 49%)
HSVhsv(314, 57%, 69%)
CMYKcmyk(0%, 57.1%, 13.1%, 31.4%)
CIE-LABlab(47.51, 50.24, -22.78)
CIE-LCHlch(47.51, 55.16, 335.61°)
OKLaboklab(56.82% 0.1471 -0.0615)
OKLCHoklch(56.82% 0.159 337.3)
XYZxyz(25.8631, 16.4151, 31.5059)
Luminance0.1641 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4B98 #4BAF62
analogous
#944BAF #AF4B98 #AF4B66
triadic
#AF4B98 #98AF4B #4B98AF
tetradic
#AF4B98 #AF944B #4BAF62 #4B66AF
square
#AF4B98 #AF944B #4BAF62 #4B66AF
split-complementary
#AF4B98 #66AF4B #4BAF94
monochromatic
#59264E #843973 #AF4B98 #C374B1 #D69FC9

Accessibility & contrast

On white

4.90
#AF4B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF4B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4B98
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4B98#FFFFFF#000000##FFFFFF
##AF4B981.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D679A
Deuteranopia (green-blind)
#6B7695
Tritanopia (blue-blind)
#B84F6B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4b98;
/* rgb */ color: rgb(175, 75, 152);
/* oklch */ color: oklch(56.8% 0.159 337.3);
Tailwind
colors: {
  custom: {
    50: '#c982b6',
    500: '#af4b98',
    950: '#000000',
  },
}
SCSS
$custom: #af4b98;
$custom-light: #c982b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4b98",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 152
  },
  "hsl": {
    "h": 313.8,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56822,
    "c": 0.15944,
    "h": 337.3
  },
  "luminance": 0.16413
}

Semantic roles & 50–950 ramp

primary
#AF4B98
secondary
#93C29E
accent
#D07458
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80

Preview Lab

Preview with #AF4B98

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

Preview Lab → · Contrast checker → · Palette generator →

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