#AF4FAC#AF4FAC

#AF4FAC is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.3% C 0.170 H 328.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF4FAC
RGBrgb(175, 79, 172)
HSLhsl(302, 38%, 50%)
HSVhsv(302, 55%, 69%)
CMYKcmyk(0%, 54.9%, 1.7%, 31.4%)
CIE-LABlab(49.11, 51.72, -32.12)
CIE-LCHlch(49.11, 60.88, 328.16°)
OKLaboklab(58.29% 0.145 -0.0882)
OKLCHoklch(58.29% 0.17 328.7)
XYZxyz(27.9212, 17.6862, 40.9649)
Luminance0.1768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FAC #4FAF52
analogous
#824FAF #AF4FAC #AF4F7C
triadic
#AF4FAC #ACAF4F #4FACAF
tetradic
#AF4FAC #AF824F #4FAF52 #4F7CAF
square
#AF4FAC #AF824F #4FAF52 #4F7CAF
split-complementary
#AF4FAC #7CAF4F #4FAF82
monochromatic
#5B2959 #853C83 #AF4FAC #C279C0 #D5A3D4

Accessibility & contrast

On white

4.63
#AF4FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AF4FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FAC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FAC#FFFFFF#000000##FFFFFF
##AF4FAC1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476DAF
Deuteranopia (green-blind)
#6579A9
Tritanopia (blue-blind)
#B45976
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4fac;
/* rgb */ color: rgb(175, 79, 172);
/* oklch */ color: oklch(58.3% 0.170 328.7);
Tailwind
colors: {
  custom: {
    50: '#c985c5',
    500: '#af4fac',
    950: '#000000',
  },
}
SCSS
$custom: #af4fac;
$custom-light: #c985c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fac",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 301.875,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58291,
    "c": 0.16969,
    "h": 328.7
  },
  "luminance": 0.17684
}

Semantic roles & 50–950 ramp

primary
#AF4FAC
secondary
#97C399
accent
#CE5E5A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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