#AF4EA2#AF4EA2

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

Color values

HEX#AF4EA2
RGBrgb(175, 78, 162)
HSLhsl(308, 38%, 50%)
HSVhsv(308, 55%, 69%)
CMYKcmyk(0%, 55.4%, 7.4%, 31.4%)
CIE-LABlab(48.48, 50.46, -27.22)
CIE-LCHlch(48.48, 57.33, 331.66°)
OKLaboklab(57.67% 0.1448 -0.0742)
OKLCHoklch(57.67% 0.163 332.9)
XYZxyz(26.9252, 17.1732, 36.0720)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EA2 #4EAF5B
analogous
#8C4EAF #AF4EA2 #AF4E72
triadic
#AF4EA2 #A2AF4E #4EA2AF
tetradic
#AF4EA2 #AF8C4E #4EAF5B #4E72AF
square
#AF4EA2 #AF8C4E #4EAF5B #4E72AF
split-complementary
#AF4EA2 #72AF4E #4EAF8C
monochromatic
#5A2854 #853B7B #AF4EA2 #C378B9 #D6A2CF

Accessibility & contrast

On white

4.74
#AF4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EA2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EA2#FFFFFF#000000##FFFFFF
##AF4EA21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA5
Deuteranopia (green-blind)
#69789F
Tritanopia (blue-blind)
#B65571
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4ea2;
/* rgb */ color: rgb(175, 78, 162);
/* oklch */ color: oklch(57.7% 0.163 332.9);
Tailwind
colors: {
  custom: {
    50: '#c984be',
    500: '#af4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ea2;
$custom-light: #c984be;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ea2",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 308.041,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57674,
    "c": 0.16268,
    "h": 332.9
  },
  "luminance": 0.17171
}

Semantic roles & 50–950 ramp

primary
#AF4EA2
secondary
#96C39C
accent
#CE695A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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