#AF4DC7#AF4DC7

#AF4DC7 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.5% C 0.198 H 319.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF4DC7
RGBrgb(175, 77, 199)
HSLhsl(288, 52%, 54%)
HSVhsv(288, 61%, 78%)
CMYKcmyk(12.1%, 61.3%, 0%, 22%)
CIE-LABlab(50.15, 57.70, -46.17)
CIE-LCHlch(50.15, 73.90, 321.33°)
OKLaboklab(59.5% 0.1497 -0.1289)
OKLCHoklch(59.5% 0.198 319.3)
XYZxyz(30.6405, 18.5466, 55.9876)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DC7 #65C74D
analogous
#724DC7 #AF4DC7 #C74DA2
triadic
#AF4DC7 #C7AF4D #4DC7AF
tetradic
#AF4DC7 #C7724D #65C74D #4DA2C7
square
#AF4DC7 #C7724D #65C74D #4DA2C7
split-complementary
#AF4DC7 #A2C74D #4DC772
monochromatic
#652575 #8D33A3 #AF4DC7 #C47CD6 #D9AAE4

Accessibility & contrast

On white

4.46
#AF4DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AF4DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DC7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DC7#FFFFFF#000000##000000
##AF4DC71.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D71CB
Deuteranopia (green-blind)
#557BC4
Tritanopia (blue-blind)
#AF6183
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4dc7;
/* rgb */ color: rgb(175, 77, 199);
/* oklch */ color: oklch(59.5% 0.198 319.3);
Tailwind
colors: {
  custom: {
    50: '#ca85d8',
    500: '#af4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #af4dc7;
$custom-light: #ca85d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dc7",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 288.197,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59499,
    "c": 0.19751,
    "h": 319.3
  },
  "luminance": 0.18545
}

Semantic roles & 50–950 ramp

primary
#AF4DC7
secondary
#A8D29E
accent
#DC4C68
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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