#AF4EA8#AF4EA8

#AF4EA8 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.0% C 0.168 H 330.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF4EA8
RGBrgb(175, 78, 168)
HSLhsl(304, 38%, 50%)
HSVhsv(304, 55%, 69%)
CMYKcmyk(0%, 55.4%, 4%, 31.4%)
CIE-LABlab(48.75, 51.49, -30.34)
CIE-LCHlch(48.75, 59.76, 329.50°)
OKLaboklab(57.96% 0.1458 -0.0831)
OKLCHoklch(57.96% 0.168 330.3)
XYZxyz(27.4713, 17.3917, 38.9482)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EA8 #4EAF55
analogous
#864EAF #AF4EA8 #AF4E78
triadic
#AF4EA8 #A8AF4E #4EA8AF
tetradic
#AF4EA8 #AF864E #4EAF55 #4E78AF
square
#AF4EA8 #AF864E #4EAF55 #4E78AF
split-complementary
#AF4EA8 #78AF4E #4EAF86
monochromatic
#5A2857 #853B7F #AF4EA8 #C378BD #D6A2D2

Accessibility & contrast

On white

4.69
#AF4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF4EA8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EA8#FFFFFF#000000##FFFFFF
##AF4EA81.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486BAB
Deuteranopia (green-blind)
#6679A5
Tritanopia (blue-blind)
#B55774
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4ea8;
/* rgb */ color: rgb(175, 78, 168);
/* oklch */ color: oklch(58.0% 0.168 330.3);
Tailwind
colors: {
  custom: {
    50: '#c984c2',
    500: '#af4ea8',
    950: '#000000',
  },
}
SCSS
$custom: #af4ea8;
$custom-light: #c984c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ea8",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 304.33,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57963,
    "c": 0.16776,
    "h": 330.3
  },
  "luminance": 0.1739
}

Semantic roles & 50–950 ramp

primary
#AF4EA8
secondary
#96C399
accent
#CE625A
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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