#AF4FA7#AF4FA7

#AF4FA7 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.0% C 0.165 H 330.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA7
RGBrgb(175, 79, 167)
HSLhsl(305, 38%, 50%)
HSVhsv(305, 55%, 69%)
CMYKcmyk(0%, 54.9%, 4.6%, 31.4%)
CIE-LABlab(48.88, 50.84, -29.54)
CIE-LCHlch(48.88, 58.80, 329.84°)
OKLaboklab(58.05% 0.1442 -0.0808)
OKLCHoklch(58.05% 0.165 330.7)
XYZxyz(27.4500, 17.4977, 38.4833)
Luminance0.1750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA7 #4FAF57
analogous
#874FAF #AF4FA7 #AF4F77
triadic
#AF4FA7 #A7AF4F #4FA7AF
tetradic
#AF4FA7 #AF874F #4FAF57 #4F77AF
square
#AF4FA7 #AF874F #4FAF57 #4F77AF
split-complementary
#AF4FA7 #77AF4F #4FAF87
monochromatic
#5B2957 #853C7F #AF4FA7 #C279BC #D5A3D1

Accessibility & contrast

On white

4.67
#AF4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF4FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA7#FFFFFF#000000##FFFFFF
##AF4FA71.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAA
Deuteranopia (green-blind)
#6779A4
Tritanopia (blue-blind)
#B55774
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa7;
/* rgb */ color: rgb(175, 79, 167);
/* oklch */ color: oklch(58.0% 0.165 330.7);
Tailwind
colors: {
  custom: {
    50: '#c985c1',
    500: '#af4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa7;
$custom-light: #c985c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa7",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 305,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58045,
    "c": 0.16533,
    "h": 330.7
  },
  "luminance": 0.17496
}

Semantic roles & 50–950 ramp

primary
#AF4FA7
secondary
#97C39B
accent
#CE645A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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