#AF4EA0#AF4EA0

#AF4EA0 is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.6% C 0.161 H 333.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF4EA0
RGBrgb(175, 78, 160)
HSLhsl(309, 38%, 50%)
HSVhsv(309, 55%, 69%)
CMYKcmyk(0%, 55.4%, 8.6%, 31.4%)
CIE-LABlab(48.39, 50.12, -26.17)
CIE-LCHlch(48.39, 56.54, 332.43°)
OKLaboklab(57.58% 0.1444 -0.0712)
OKLCHoklch(57.58% 0.161 333.8)
XYZxyz(26.7488, 17.1027, 35.1432)
Luminance0.1710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EA0 #4EAF5D
analogous
#8D4EAF #AF4EA0 #AF4E70
triadic
#AF4EA0 #A0AF4E #4EA0AF
tetradic
#AF4EA0 #AF8D4E #4EAF5D #4E70AF
square
#AF4EA0 #AF8D4E #4EAF5D #4E70AF
split-complementary
#AF4EA0 #70AF4E #4EAF8D
monochromatic
#5A2853 #853B79 #AF4EA0 #C378B7 #D6A2CE

Accessibility & contrast

On white

4.75
#AF4EA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AF4EA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EA0
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EA0#FFFFFF#000000##FFFFFF
##AF4EA01.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af4ea0;
/* rgb */ color: rgb(175, 78, 160);
/* oklch */ color: oklch(57.6% 0.161 333.8);
Tailwind
colors: {
  custom: {
    50: '#c984bc',
    500: '#af4ea0',
    950: '#000000',
  },
}
SCSS
$custom: #af4ea0;
$custom-light: #c984bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ea0",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 160
  },
  "hsl": {
    "h": 309.278,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5758,
    "c": 0.16103,
    "h": 333.8
  },
  "luminance": 0.17101
}

Semantic roles & 50–950 ramp

primary
#AF4EA0
secondary
#96C39D
accent
#CE6C5A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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