#AF4B9F#AF4B9F

#AF4B9F is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.1% C 0.165 H 334.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF4B9F
RGBrgb(175, 75, 159)
HSLhsl(310, 40%, 49%)
HSVhsv(310, 57%, 69%)
CMYKcmyk(0%, 57.1%, 9.1%, 31.4%)
CIE-LABlab(47.82, 51.38, -26.47)
CIE-LCHlch(47.82, 57.79, 332.74°)
OKLaboklab(57.14% 0.1484 -0.072)
OKLCHoklch(57.14% 0.165 334.1)
XYZxyz(26.4534, 16.6512, 34.6149)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4B9F #4BAF5B
analogous
#8D4BAF #AF4B9F #AF4B6D
triadic
#AF4B9F #9FAF4B #4B9FAF
tetradic
#AF4B9F #AF8D4B #4BAF5B #4B6DAF
square
#AF4B9F #AF8D4B #4BAF5B #4B6DAF
split-complementary
#AF4B9F #6DAF4B #4BAF8D
monochromatic
#592651 #843978 #AF4B9F #C374B7 #D69FCD

Accessibility & contrast

On white

4.85
#AF4B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF4B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4B9F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4B9F#FFFFFF#000000##FFFFFF
##AF4B9F1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A68A2
Deuteranopia (green-blind)
#68779C
Tritanopia (blue-blind)
#B7516E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4b9f;
/* rgb */ color: rgb(175, 75, 159);
/* oklch */ color: oklch(57.1% 0.165 334.1);
Tailwind
colors: {
  custom: {
    50: '#c982bb',
    500: '#af4b9f',
    950: '#000000',
  },
}
SCSS
$custom: #af4b9f;
$custom-light: #c982bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4b9f",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 159
  },
  "hsl": {
    "h": 309.6,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57144,
    "c": 0.16494,
    "h": 334.1
  },
  "luminance": 0.16649
}

Semantic roles & 50–950 ramp

primary
#AF4B9F
secondary
#93C29B
accent
#D06B58
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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