#AF4EB3#AF4EB3

#AF4EB3 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.5% C 0.177 H 326.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF4EB3
RGBrgb(175, 78, 179)
HSLhsl(298, 40%, 50%)
HSVhsv(298, 56%, 70%)
CMYKcmyk(2.2%, 56.4%, 0%, 29.8%)
CIE-LABlab(49.28, 53.46, -35.96)
CIE-LCHlch(49.28, 64.43, 326.07°)
OKLaboklab(58.52% 0.1471 -0.0992)
OKLCHoklch(58.52% 0.177 326)
XYZxyz(28.5397, 17.8190, 44.5753)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EB3 #52B34E
analogous
#7C4EB3 #AF4EB3 #B34E84
triadic
#AF4EB3 #B3AF4E #4EB3AF
tetradic
#AF4EB3 #B37C4E #52B34E #4E84B3
square
#AF4EB3 #B37C4E #52B34E #4E84B3
split-complementary
#AF4EB3 #84B34E #4EB37C
monochromatic
#5C285E #863B89 #AF4EB3 #C279C5 #D6A4D8

Accessibility & contrast

On white

4.60
#AF4EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AF4EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EB3
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EB3#FFFFFF#000000##FFFFFF
##AF4EB31.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB6
Deuteranopia (green-blind)
#6179B0
Tritanopia (blue-blind)
#B35B79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4eb3;
/* rgb */ color: rgb(175, 78, 179);
/* oklch */ color: oklch(58.5% 0.177 326.0);
Tailwind
colors: {
  custom: {
    50: '#c985ca',
    500: '#af4eb3',
    950: '#000000',
  },
}
SCSS
$custom: #af4eb3;
$custom-light: #c985ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eb3",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 297.624,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58521,
    "c": 0.17748,
    "h": 326
  },
  "luminance": 0.17817
}

Semantic roles & 50–950 ramp

primary
#AF4EB3
secondary
#9AC598
accent
#D0585D
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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