#AF4AA5#AF4AA5

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

Color values

HEX#AF4AA5
RGBrgb(175, 74, 165)
HSLhsl(306, 41%, 49%)
HSVhsv(306, 58%, 69%)
CMYKcmyk(0%, 57.7%, 5.7%, 31.4%)
CIE-LABlab(47.92, 52.85, -29.86)
CIE-LCHlch(47.92, 60.70, 330.53°)
OKLaboklab(57.31% 0.1507 -0.0817)
OKLCHoklch(57.31% 0.171 331.5)
XYZxyz(26.9194, 16.7300, 37.4014)
Luminance0.1673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AA5 #4AAF54
analogous
#874AAF #AF4AA5 #AF4A73
triadic
#AF4AA5 #A5AF4A #4AA5AF
tetradic
#AF4AA5 #AF874A #4AAF54 #4A73AF
square
#AF4AA5 #AF874A #4AAF54 #4A73AF
split-complementary
#AF4AA5 #73AF4A #4AAF87
monochromatic
#592654 #84387C #AF4AA5 #C473BC #D69ED0

Accessibility & contrast

On white

4.83
#AF4AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF4AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4AA5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AA5#FFFFFF#000000##FFFFFF
##AF4AA51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4569A8
Deuteranopia (green-blind)
#6577A2
Tritanopia (blue-blind)
#B65371
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4aa5;
/* rgb */ color: rgb(175, 74, 165);
/* oklch */ color: oklch(57.3% 0.171 331.5);
Tailwind
colors: {
  custom: {
    50: '#c982c0',
    500: '#af4aa5',
    950: '#000000',
  },
}
SCSS
$custom: #af4aa5;
$custom-light: #c982c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aa5",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 305.941,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57307,
    "c": 0.1714,
    "h": 331.5
  },
  "luminance": 0.16728
}

Semantic roles & 50–950 ramp

primary
#AF4AA5
secondary
#92C297
accent
#D06357
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF4AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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