#AF4CC8#AF4CC8

#AF4CC8 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.4% C 0.200 H 319.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF4CC8
RGBrgb(175, 76, 200)
HSLhsl(288, 53%, 54%)
HSVhsv(288, 62%, 78%)
CMYKcmyk(12.5%, 62%, 0%, 21.6%)
CIE-LABlab(50.04, 58.35, -46.92)
CIE-LCHlch(50.04, 74.88, 321.19°)
OKLaboklab(59.44% 0.1509 -0.131)
OKLCHoklch(59.44% 0.2 319)
XYZxyz(30.6876, 18.4543, 56.5780)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CC8 #65C84C
analogous
#714CC8 #AF4CC8 #C84CA3
triadic
#AF4CC8 #C8AF4C #4CC8AF
tetradic
#AF4CC8 #C8714C #65C84C #4CA3C8
square
#AF4CC8 #C8714C #65C84C #4CA3C8
split-complementary
#AF4CC8 #A3C84C #4CC871
monochromatic
#652475 #8D32A4 #AF4CC8 #C47BD6 #D9AAE5

Accessibility & contrast

On white

4.48
#AF4CC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#AF4CC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CC8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CC8#FFFFFF#000000##000000
##AF4CC81.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A70CC
Deuteranopia (green-blind)
#547AC5
Tritanopia (blue-blind)
#AF6183
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4cc8;
/* rgb */ color: rgb(175, 76, 200);
/* oklch */ color: oklch(59.4% 0.200 319.0);
Tailwind
colors: {
  custom: {
    50: '#ca84d9',
    500: '#af4cc8',
    950: '#000000',
  },
}
SCSS
$custom: #af4cc8;
$custom-light: #ca84d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cc8",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 200
  },
  "hsl": {
    "h": 287.903,
    "s": 52.991,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59437,
    "c": 0.19985,
    "h": 319
  },
  "luminance": 0.18453
}

Semantic roles & 50–950 ramp

primary
#AF4CC8
secondary
#A8D29E
accent
#DC4B69
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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