#AF4EAF#AF4EAF

#AF4EAF is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.3% C 0.174 H 327.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF4EAF
RGBrgb(175, 78, 175)
HSLhsl(300, 38%, 50%)
HSVhsv(300, 55%, 69%)
CMYKcmyk(0%, 55.4%, 0%, 31.4%)
CIE-LABlab(49.08, 52.73, -33.93)
CIE-LCHlch(49.08, 62.70, 327.24°)
OKLaboklab(58.31% 0.1467 -0.0934)
OKLCHoklch(58.31% 0.174 327.5)
XYZxyz(28.1410, 17.6596, 42.4755)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EAF #4EAF4E
analogous
#7F4EAF #AF4EAF #AF4E7F
triadic
#AF4EAF #AFAF4E #4EAFAF
tetradic
#AF4EAF #AF7F4E #4EAF4E #4E7FAF
square
#AF4EAF #AF7F4E #4EAF4E #4E7FAF
split-complementary
#AF4EAF #7FAF4E #4EAF7F
monochromatic
#5A285A #853B85 #AF4EAF #C378C3 #D6A2D6

Accessibility & contrast

On white

4.63
#AF4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF4EAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EAF
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EAF#FFFFFF#000000##FFFFFF
##AF4EAF1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446DB2
Deuteranopia (green-blind)
#6379AC
Tritanopia (blue-blind)
#B45977
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4eaf;
/* rgb */ color: rgb(175, 78, 175);
/* oklch */ color: oklch(58.3% 0.174 327.5);
Tailwind
colors: {
  custom: {
    50: '#c985c7',
    500: '#af4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #af4eaf;
$custom-light: #c985c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eaf",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58314,
    "c": 0.17389,
    "h": 327.5
  },
  "luminance": 0.17658
}

Semantic roles & 50–950 ramp

primary
#AF4EAF
secondary
#96C396
accent
#CE5A5A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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