#AF4A8B#AF4A8B

#AF4A8B is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.1% C 0.152 H 343.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF4A8B
RGBrgb(175, 74, 139)
HSLhsl(321, 41%, 49%)
HSVhsv(321, 58%, 69%)
CMYKcmyk(0%, 57.7%, 20.6%, 31.4%)
CIE-LABlab(46.81, 48.71, -16.07)
CIE-LCHlch(46.81, 51.29, 341.74°)
OKLaboklab(56.13% 0.1455 -0.0427)
OKLCHoklch(56.13% 0.152 343.6)
XYZxyz(24.7888, 15.8778, 26.1803)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A8B #4AAF6E
analogous
#A14AAF #AF4A8B #AF4A59
triadic
#AF4A8B #8BAF4A #4A8BAF
tetradic
#AF4A8B #AFA14A #4AAF6E #4A59AF
square
#AF4A8B #AFA14A #4AAF6E #4A59AF
split-complementary
#AF4A8B #59AF4A #4AAFA1
monochromatic
#592647 #843869 #AF4A8B #C473A7 #D69EC2

Accessibility & contrast

On white

5.03
#AF4A8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF4A8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4A8B
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4A8B#FFFFFF#000000##FFFFFF
##AF4A8B1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52648D
Deuteranopia (green-blind)
#6F7588
Tritanopia (blue-blind)
#B94A64
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4a8b;
/* rgb */ color: rgb(175, 74, 139);
/* oklch */ color: oklch(56.1% 0.152 343.6);
Tailwind
colors: {
  custom: {
    50: '#ca81ad',
    500: '#af4a8b',
    950: '#000000',
  },
}
SCSS
$custom: #af4a8b;
$custom-light: #ca81ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a8b",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 139
  },
  "hsl": {
    "h": 321.386,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56132,
    "c": 0.15168,
    "h": 343.6
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#AF4A8B
secondary
#92C2A4
accent
#D08357
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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