#AF4B9E#AF4B9E

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

Color values

HEX#AF4B9E
RGBrgb(175, 75, 158)
HSLhsl(310, 40%, 49%)
HSVhsv(310, 57%, 69%)
CMYKcmyk(0%, 57.1%, 9.7%, 31.4%)
CIE-LABlab(47.77, 51.21, -25.94)
CIE-LCHlch(47.77, 57.41, 333.13°)
OKLaboklab(57.1% 0.1482 -0.0705)
OKLCHoklch(57.1% 0.164 334.6)
XYZxyz(26.3669, 16.6167, 34.1597)
Luminance0.1661 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4B9E #4BAF5C
analogous
#8E4BAF #AF4B9E #AF4B6C
triadic
#AF4B9E #9EAF4B #4B9EAF
tetradic
#AF4B9E #AF8E4B #4BAF5C #4B6CAF
square
#AF4B9E #AF8E4B #4BAF5C #4B6CAF
split-complementary
#AF4B9E #6CAF4B #4BAF8E
monochromatic
#592651 #843977 #AF4B9E #C374B6 #D69FCC

Accessibility & contrast

On white

4.86
#AF4B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF4B9E
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4B9E#FFFFFF#000000##FFFFFF
##AF4B9E1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A68A1
Deuteranopia (green-blind)
#69779B
Tritanopia (blue-blind)
#B7516E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4b9e;
/* rgb */ color: rgb(175, 75, 158);
/* oklch */ color: oklch(57.1% 0.164 334.6);
Tailwind
colors: {
  custom: {
    50: '#c982bb',
    500: '#af4b9e',
    950: '#000000',
  },
}
SCSS
$custom: #af4b9e;
$custom-light: #c982bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4b9e",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 158
  },
  "hsl": {
    "h": 310.2,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57097,
    "c": 0.16414,
    "h": 334.6
  },
  "luminance": 0.16615
}

Semantic roles & 50–950 ramp

primary
#AF4B9E
secondary
#93C29B
accent
#D06C58
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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