#AF4DA8#AF4DA8

#AF4DA8 is a mid, vivid purple. Relative luminance 0.172; OKLCH L 57.8% C 0.169 H 330.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF4DA8
RGBrgb(175, 77, 168)
HSLhsl(304, 39%, 49%)
HSVhsv(304, 56%, 69%)
CMYKcmyk(0%, 56%, 4%, 31.4%)
CIE-LABlab(48.57, 51.96, -30.61)
CIE-LCHlch(48.57, 60.31, 329.50°)
OKLaboklab(57.83% 0.1471 -0.0838)
OKLCHoklch(57.83% 0.169 330.3)
XYZxyz(27.4007, 17.2507, 38.9247)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DA8 #4DAF54
analogous
#854DAF #AF4DA8 #AF4D77
triadic
#AF4DA8 #A8AF4D #4DA8AF
tetradic
#AF4DA8 #AF854D #4DAF54 #4D77AF
square
#AF4DA8 #AF854D #4DAF54 #4D77AF
split-complementary
#AF4DA8 #77AF4D #4DAF85
monochromatic
#5A2856 #853A7F #AF4DA8 #C376BD #D6A1D2

Accessibility & contrast

On white

4.72
#AF4DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF4DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DA8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DA8#FFFFFF#000000##FFFFFF
##AF4DA81.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476BAB
Deuteranopia (green-blind)
#6678A5
Tritanopia (blue-blind)
#B55673
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4da8;
/* rgb */ color: rgb(175, 77, 168);
/* oklch */ color: oklch(57.8% 0.169 330.3);
Tailwind
colors: {
  custom: {
    50: '#c984c2',
    500: '#af4da8',
    950: '#000000',
  },
}
SCSS
$custom: #af4da8;
$custom-light: #c984c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4da8",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 304.286,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57834,
    "c": 0.16932,
    "h": 330.3
  },
  "luminance": 0.17249
}

Semantic roles & 50–950 ramp

primary
#AF4DA8
secondary
#95C399
accent
#CF6159
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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