#AF4EAA#AF4EAA

#AF4EAA is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.1% C 0.169 H 329.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF4EAA
RGBrgb(175, 78, 170)
HSLhsl(303, 38%, 50%)
HSVhsv(303, 55%, 69%)
CMYKcmyk(0%, 55.4%, 2.9%, 31.4%)
CIE-LABlab(48.84, 51.84, -31.37)
CIE-LCHlch(48.84, 60.59, 328.82°)
OKLaboklab(58.06% 0.146 -0.086)
OKLCHoklch(58.06% 0.169 329.5)
XYZxyz(27.6590, 17.4668, 39.9370)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EAA #4EAF53
analogous
#844EAF #AF4EAA #AF4E7A
triadic
#AF4EAA #AAAF4E #4EAAAF
tetradic
#AF4EAA #AF844E #4EAF53 #4E7AAF
square
#AF4EAA #AF844E #4EAF53 #4E7AAF
split-complementary
#AF4EAA #7AAF4E #4EAF84
monochromatic
#5A2858 #853B81 #AF4EAA #C378BF #D6A2D3

Accessibility & contrast

On white

4.67
#AF4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EAA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EAA#FFFFFF#000000##FFFFFF
##AF4EAA1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476CAD
Deuteranopia (green-blind)
#6579A7
Tritanopia (blue-blind)
#B55875
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4eaa;
/* rgb */ color: rgb(175, 78, 170);
/* oklch */ color: oklch(58.1% 0.169 329.5);
Tailwind
colors: {
  custom: {
    50: '#c984c3',
    500: '#af4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #af4eaa;
$custom-light: #c984c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eaa",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 303.093,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58062,
    "c": 0.16949,
    "h": 329.5
  },
  "luminance": 0.17465
}

Semantic roles & 50–950 ramp

primary
#AF4EAA
secondary
#96C399
accent
#CE605A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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