#AF4CCC#AF4CCC

#AF4CCC is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.7% C 0.204 H 317.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF4CCC
RGBrgb(175, 76, 204)
HSLhsl(286, 56%, 55%)
HSVhsv(286, 63%, 80%)
CMYKcmyk(14.2%, 62.7%, 0%, 20%)
CIE-LABlab(50.27, 59.13, -48.86)
CIE-LCHlch(50.27, 76.71, 320.43°)
OKLaboklab(59.67% 0.1509 -0.1367)
OKLCHoklch(59.67% 0.204 317.8)
XYZxyz(31.1612, 18.6437, 59.0722)
Luminance0.1864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CCC #69CC4C
analogous
#6F4CCC #AF4CCC #CC4CA9
triadic
#AF4CCC #CCAF4C #4CCCAF
tetradic
#AF4CCC #CC6F4C #69CC4C #4CA9CC
square
#AF4CCC #CC6F4C #69CC4C #4CA9CC
split-complementary
#AF4CCC #A9CC4C #4CCC6F
monochromatic
#67237B #8F31AA #AF4CCC #C47CDA #DAABE7

Accessibility & contrast

On white

4.44
#AF4CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF4CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CCC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CCC#FFFFFF#000000##000000
##AF4CCC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2471D0
Deuteranopia (green-blind)
#517BC9
Tritanopia (blue-blind)
#AE6285
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4ccc;
/* rgb */ color: rgb(175, 76, 204);
/* oklch */ color: oklch(59.7% 0.204 317.8);
Tailwind
colors: {
  custom: {
    50: '#ca84dc',
    500: '#af4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #af4ccc;
$custom-light: #ca84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ccc",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 286.406,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59673,
    "c": 0.20364,
    "h": 317.8
  },
  "luminance": 0.18642
}

Semantic roles & 50–950 ramp

primary
#AF4CCC
secondary
#ABD59F
accent
#DF496B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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