#AF4FA5#AF4FA5

#AF4FA5 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 57.9% C 0.164 H 331.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA5
RGBrgb(175, 79, 165)
HSLhsl(306, 38%, 50%)
HSVhsv(306, 55%, 69%)
CMYKcmyk(0%, 54.9%, 5.7%, 31.4%)
CIE-LABlab(48.79, 50.49, -28.50)
CIE-LCHlch(48.79, 57.98, 330.55°)
OKLaboklab(57.95% 0.1439 -0.0778)
OKLCHoklch(57.95% 0.164 331.6)
XYZxyz(27.2666, 17.4243, 37.5171)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA5 #4FAF59
analogous
#894FAF #AF4FA5 #AF4F75
triadic
#AF4FA5 #A5AF4F #4FA5AF
tetradic
#AF4FA5 #AF894F #4FAF59 #4F75AF
square
#AF4FA5 #AF894F #4FAF59 #4F75AF
split-complementary
#AF4FA5 #75AF4F #4FAF89
monochromatic
#5B2955 #853C7D #AF4FA5 #C279BB #D5A3D0

Accessibility & contrast

On white

4.68
#AF4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA5#FFFFFF#000000##FFFFFF
##AF4FA51.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA8
Deuteranopia (green-blind)
#6879A2
Tritanopia (blue-blind)
#B65773
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa5;
/* rgb */ color: rgb(175, 79, 165);
/* oklch */ color: oklch(57.9% 0.164 331.6);
Tailwind
colors: {
  custom: {
    50: '#c985c0',
    500: '#af4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa5;
$custom-light: #c985c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa5",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 306.25,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57948,
    "c": 0.16361,
    "h": 331.6
  },
  "luminance": 0.17423
}

Semantic roles & 50–950 ramp

primary
#AF4FA5
secondary
#97C39C
accent
#CE665A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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