#AF4AC7#AF4AC7

#AF4AC7 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.1% C 0.202 H 319.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF4AC7
RGBrgb(175, 74, 199)
HSLhsl(288, 53%, 54%)
HSVhsv(288, 63%, 78%)
CMYKcmyk(12.1%, 62.8%, 0%, 22%)
CIE-LABlab(49.66, 59.05, -46.95)
CIE-LCHlch(49.66, 75.44, 321.51°)
OKLaboklab(59.14% 0.1533 -0.1311)
OKLCHoklch(59.14% 0.202 319.4)
XYZxyz(30.4355, 18.1364, 55.9193)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AC7 #62C74A
analogous
#704AC7 #AF4AC7 #C74AA0
triadic
#AF4AC7 #C7AF4A #4AC7AF
tetradic
#AF4AC7 #C7704A #62C74A #4AA0C7
square
#AF4AC7 #C7704A #62C74A #4AA0C7
split-complementary
#AF4AC7 #A0C74A #4AC770
monochromatic
#642473 #8C32A2 #AF4AC7 #C479D5 #D8A7E4

Accessibility & contrast

On white

4.54
#AF4AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF4AC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4AC7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AC7#FFFFFF#000000##000000
##AF4AC71.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#276FCB
Deuteranopia (green-blind)
#537AC4
Tritanopia (blue-blind)
#AF5F82
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4ac7;
/* rgb */ color: rgb(175, 74, 199);
/* oklch */ color: oklch(59.1% 0.202 319.4);
Tailwind
colors: {
  custom: {
    50: '#ca83d8',
    500: '#af4ac7',
    950: '#000000',
  },
}
SCSS
$custom: #af4ac7;
$custom-light: #ca83d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ac7",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 288.48,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59143,
    "c": 0.2017,
    "h": 319.4
  },
  "luminance": 0.18135
}

Semantic roles & 50–950 ramp

primary
#AF4AC7
secondary
#A6D19C
accent
#DC4C67
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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