#AF4DA5#AF4DA5

#AF4DA5 is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.7% C 0.167 H 331.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF4DA5
RGBrgb(175, 77, 165)
HSLhsl(306, 39%, 49%)
HSVhsv(306, 56%, 69%)
CMYKcmyk(0%, 56%, 5.7%, 31.4%)
CIE-LABlab(48.44, 51.45, -29.06)
CIE-LCHlch(48.44, 59.08, 330.54°)
OKLaboklab(57.69% 0.1467 -0.0794)
OKLCHoklch(57.69% 0.167 331.6)
XYZxyz(27.1245, 17.1402, 37.4697)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DA5 #4DAF57
analogous
#884DAF #AF4DA5 #AF4D74
triadic
#AF4DA5 #A5AF4D #4DA5AF
tetradic
#AF4DA5 #AF884D #4DAF57 #4D74AF
square
#AF4DA5 #AF884D #4DAF57 #4D74AF
split-complementary
#AF4DA5 #74AF4D #4DAF88
monochromatic
#5A2855 #853A7D #AF4DA5 #C376BB #D6A1D0

Accessibility & contrast

On white

4.74
#AF4DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF4DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DA5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DA5#FFFFFF#000000##FFFFFF
##AF4DA51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496AA8
Deuteranopia (green-blind)
#6778A2
Tritanopia (blue-blind)
#B65572
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4da5;
/* rgb */ color: rgb(175, 77, 165);
/* oklch */ color: oklch(57.7% 0.167 331.6);
Tailwind
colors: {
  custom: {
    50: '#c984c0',
    500: '#af4da5',
    950: '#000000',
  },
}
SCSS
$custom: #af4da5;
$custom-light: #c984c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4da5",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 306.122,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57688,
    "c": 0.16677,
    "h": 331.6
  },
  "luminance": 0.17138
}

Semantic roles & 50–950 ramp

primary
#AF4DA5
secondary
#95C39A
accent
#CF6559
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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