#AF4FA0#AF4FA0

#AF4FA0 is a mid, vivid purple. Relative luminance 0.172; OKLCH L 57.7% C 0.159 H 333.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA0
RGBrgb(175, 79, 160)
HSLhsl(309, 38%, 50%)
HSVhsv(309, 55%, 69%)
CMYKcmyk(0%, 54.9%, 8.6%, 31.4%)
CIE-LABlab(48.57, 49.64, -25.90)
CIE-LCHlch(48.57, 55.99, 332.45°)
OKLaboklab(57.71% 0.143 -0.0704)
OKLCHoklch(57.71% 0.159 333.8)
XYZxyz(26.8204, 17.2459, 35.1670)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA0 #4FAF5E
analogous
#8E4FAF #AF4FA0 #AF4F70
triadic
#AF4FA0 #A0AF4F #4FA0AF
tetradic
#AF4FA0 #AF8E4F #4FAF5E #4F70AF
square
#AF4FA0 #AF8E4F #4FAF5E #4F70AF
split-complementary
#AF4FA0 #70AF4F #4FAF8E
monochromatic
#5B2953 #853C79 #AF4FA0 #C279B7 #D5A3CE

Accessibility & contrast

On white

4.72
#AF4FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF4FA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA0
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA0#FFFFFF#000000##FFFFFF
##AF4FA01.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6AA3
Deuteranopia (green-blind)
#6A789D
Tritanopia (blue-blind)
#B65570
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4fa0;
/* rgb */ color: rgb(175, 79, 160);
/* oklch */ color: oklch(57.7% 0.159 333.8);
Tailwind
colors: {
  custom: {
    50: '#c985bc',
    500: '#af4fa0',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa0;
$custom-light: #c985bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa0",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 160
  },
  "hsl": {
    "h": 309.375,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57712,
    "c": 0.15943,
    "h": 333.8
  },
  "luminance": 0.17244
}

Semantic roles & 50–950 ramp

primary
#AF4FA0
secondary
#97C39E
accent
#CE6C5A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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