#AF43AB#AF43AB

#AF43AB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.187 H 329.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF43AB
RGBrgb(175, 67, 171)
HSLhsl(302, 45%, 47%)
HSVhsv(302, 62%, 69%)
CMYKcmyk(0%, 61.7%, 2.3%, 31.4%)
CIE-LABlab(47.07, 56.99, -34.74)
CIE-LCHlch(47.07, 66.75, 328.64°)
OKLaboklab(56.78% 0.1603 -0.0956)
OKLCHoklch(56.78% 0.187 329.2)
XYZxyz(27.0368, 16.0704, 40.1980)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF43AB #43AF47
analogous
#7D43AF #AF43AB #AF4375
triadic
#AF43AB #ABAF43 #43ABAF
tetradic
#AF43AB #AF7D43 #43AF47 #4375AF
square
#AF43AB #AF7D43 #43AF47 #4375AF
split-complementary
#AF43AB #75AF43 #43AF7D
monochromatic
#562155 #833280 #AF43AB #C669C2 #D796D4

Accessibility & contrast

On white

4.98
#AF43AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AF43AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF43AB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF43AB#FFFFFF#000000##FFFFFF
##AF43AB1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#5E75A8
Tritanopia (blue-blind)
#B54F71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af43ab;
/* rgb */ color: rgb(175, 67, 171);
/* oklch */ color: oklch(56.8% 0.187 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca7ec4',
    500: '#af43ab',
    950: '#000000',
  },
}
SCSS
$custom: #af43ab;
$custom-light: #ca7ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#af43ab",
  "rgb": {
    "r": 175,
    "g": 67,
    "b": 171
  },
  "hsl": {
    "h": 302.222,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56779,
    "c": 0.18669,
    "h": 329.2
  },
  "luminance": 0.16069
}

Semantic roles & 50–950 ramp

primary
#AF43AB
secondary
#8BC28D
accent
#D45853
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF43AB

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

Preview Lab → · Contrast checker → · Palette generator →

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