#AF4BA0#AF4BA0

#AF4BA0 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.2% C 0.166 H 333.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF4BA0
RGBrgb(175, 75, 160)
HSLhsl(309, 40%, 49%)
HSVhsv(309, 57%, 69%)
CMYKcmyk(0%, 57.1%, 8.6%, 31.4%)
CIE-LABlab(47.86, 51.54, -26.99)
CIE-LCHlch(47.86, 58.18, 332.36°)
OKLaboklab(57.19% 0.1486 -0.0735)
OKLCHoklch(57.19% 0.166 333.7)
XYZxyz(26.5405, 16.6861, 35.0737)
Luminance0.1668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BA0 #4BAF5A
analogous
#8C4BAF #AF4BA0 #AF4B6E
triadic
#AF4BA0 #A0AF4B #4BA0AF
tetradic
#AF4BA0 #AF8C4B #4BAF5A #4B6EAF
square
#AF4BA0 #AF8C4B #4BAF5A #4B6EAF
split-complementary
#AF4BA0 #6EAF4B #4BAF8C
monochromatic
#592652 #843979 #AF4BA0 #C374B7 #D69FCD

Accessibility & contrast

On white

4.84
#AF4BA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF4BA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4BA0
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BA0#FFFFFF#000000##FFFFFF
##AF4BA01.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4968A3
Deuteranopia (green-blind)
#68779D
Tritanopia (blue-blind)
#B6526F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4ba0;
/* rgb */ color: rgb(175, 75, 160);
/* oklch */ color: oklch(57.2% 0.166 333.7);
Tailwind
colors: {
  custom: {
    50: '#c982bc',
    500: '#af4ba0',
    950: '#000000',
  },
}
SCSS
$custom: #af4ba0;
$custom-light: #c982bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ba0",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 160
  },
  "hsl": {
    "h": 309,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57192,
    "c": 0.16574,
    "h": 333.7
  },
  "luminance": 0.16684
}

Semantic roles & 50–950 ramp

primary
#AF4BA0
secondary
#93C29A
accent
#D06A58
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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