#AF4FA8#AF4FA8

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

Color values

HEX#AF4FA8
RGBrgb(175, 79, 168)
HSLhsl(304, 38%, 50%)
HSVhsv(304, 55%, 69%)
CMYKcmyk(0%, 54.9%, 4%, 31.4%)
CIE-LABlab(48.93, 51.01, -30.06)
CIE-LCHlch(48.93, 59.21, 329.49°)
OKLaboklab(58.09% 0.1444 -0.0823)
OKLCHoklch(58.09% 0.166 330.3)
XYZxyz(27.5428, 17.5349, 38.9721)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA8 #4FAF56
analogous
#864FAF #AF4FA8 #AF4F78
triadic
#AF4FA8 #A8AF4F #4FA8AF
tetradic
#AF4FA8 #AF864F #4FAF56 #4F78AF
square
#AF4FA8 #AF864F #4FAF56 #4F78AF
split-complementary
#AF4FA8 #78AF4F #4FAF86
monochromatic
#5B2957 #853C80 #AF4FA8 #C279BD #D5A3D2

Accessibility & contrast

On white

4.66
#AF4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF4FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA8#FFFFFF#000000##FFFFFF
##AF4FA81.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496CAB
Deuteranopia (green-blind)
#6779A5
Tritanopia (blue-blind)
#B55874
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa8;
/* rgb */ color: rgb(175, 79, 168);
/* oklch */ color: oklch(58.1% 0.166 330.3);
Tailwind
colors: {
  custom: {
    50: '#c985c2',
    500: '#af4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa8;
$custom-light: #c985c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa8",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 304.375,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58093,
    "c": 0.16619,
    "h": 330.3
  },
  "luminance": 0.17533
}

Semantic roles & 50–950 ramp

primary
#AF4FA8
secondary
#97C39A
accent
#CE625A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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