#AF4EB9#AF4EB9

#AF4EB9 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.8% C 0.183 H 323.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF4EB9
RGBrgb(175, 78, 185)
HSLhsl(294, 43%, 52%)
HSVhsv(294, 58%, 73%)
CMYKcmyk(5.4%, 57.8%, 0%, 27.5%)
CIE-LABlab(49.58, 54.56, -38.98)
CIE-LCHlch(49.58, 67.06, 324.46°)
OKLaboklab(58.84% 0.1477 -0.108)
OKLCHoklch(58.84% 0.183 323.8)
XYZxyz(29.1597, 18.0671, 47.8409)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EB9 #58B94E
analogous
#7A4EB9 #AF4EB9 #B94E8E
triadic
#AF4EB9 #B9AF4E #4EB9AF
tetradic
#AF4EB9 #B97A4E #58B94E #4E8EB9
square
#AF4EB9 #B97A4E #58B94E #4E8EB9
split-complementary
#AF4EB9 #8EB94E #4EB97A
monochromatic
#5F2865 #883991 #AF4EB9 #C37ACA #D7A6DC

Accessibility & contrast

On white

4.55
#AF4EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF4EB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EB9
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EB9#FFFFFF#000000##000000
##AF4EB91.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBC
Deuteranopia (green-blind)
#5E7AB6
Tritanopia (blue-blind)
#B25D7C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4eb9;
/* rgb */ color: rgb(175, 78, 185);
/* oklch */ color: oklch(58.8% 0.183 323.8);
Tailwind
colors: {
  custom: {
    50: '#c985ce',
    500: '#af4eb9',
    950: '#000000',
  },
}
SCSS
$custom: #af4eb9;
$custom-light: #c985ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eb9",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 294.393,
    "s": 43.32,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58839,
    "c": 0.18296,
    "h": 323.8
  },
  "luminance": 0.18066
}

Semantic roles & 50–950 ramp

primary
#AF4EB9
secondary
#9EC99A
accent
#D35561
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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