#AF4B9D#AF4B9D

#AF4B9D is a mid, vivid pink. Relative luminance 0.166; OKLCH L 57.1% C 0.163 H 335.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF4B9D
RGBrgb(175, 75, 157)
HSLhsl(311, 40%, 49%)
HSVhsv(311, 57%, 69%)
CMYKcmyk(0%, 57.1%, 10.3%, 31.4%)
CIE-LABlab(47.73, 51.04, -25.42)
CIE-LCHlch(47.73, 57.02, 333.53°)
OKLaboklab(57.05% 0.148 -0.069)
OKLCHoklch(57.05% 0.163 335)
XYZxyz(26.2812, 16.5824, 33.7083)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4B9D #4BAF5D
analogous
#8F4BAF #AF4B9D #AF4B6B
triadic
#AF4B9D #9DAF4B #4B9DAF
tetradic
#AF4B9D #AF8F4B #4BAF5D #4B6BAF
square
#AF4B9D #AF8F4B #4BAF5D #4B6BAF
split-complementary
#AF4B9D #6BAF4B #4BAF8F
monochromatic
#592650 #843977 #AF4B9D #C374B5 #D69FCC

Accessibility & contrast

On white

4.87
#AF4B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF4B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4B9D
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4B9D#FFFFFF#000000##FFFFFF
##AF4B9D1.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B68A0
Deuteranopia (green-blind)
#69779A
Tritanopia (blue-blind)
#B7516D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4b9d;
/* rgb */ color: rgb(175, 75, 157);
/* oklch */ color: oklch(57.1% 0.163 335.0);
Tailwind
colors: {
  custom: {
    50: '#c982ba',
    500: '#af4b9d',
    950: '#000000',
  },
}
SCSS
$custom: #af4b9d;
$custom-light: #c982ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af4b9d",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 157
  },
  "hsl": {
    "h": 310.8,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57051,
    "c": 0.16334,
    "h": 335
  },
  "luminance": 0.1658
}

Semantic roles & 50–950 ramp

primary
#AF4B9D
secondary
#93C29C
accent
#D06E58
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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