#AF4DCC#AF4DCC

#AF4DCC is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 59.8% C 0.202 H 317.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF4DCC
RGBrgb(175, 77, 204)
HSLhsl(286, 55%, 55%)
HSVhsv(286, 62%, 80%)
CMYKcmyk(14.2%, 62.3%, 0%, 20%)
CIE-LABlab(50.43, 58.68, -48.60)
CIE-LCHlch(50.43, 76.19, 320.37°)
OKLaboklab(59.79% 0.1497 -0.136)
OKLCHoklch(59.79% 0.202 317.8)
XYZxyz(31.2306, 18.7826, 59.0954)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DCC #6ACC4D
analogous
#6F4DCC #AF4DCC #CC4DAA
triadic
#AF4DCC #CCAF4D #4DCCAF
tetradic
#AF4DCC #CC6F4D #6ACC4D #4DAACC
square
#AF4DCC #CC6F4D #6ACC4D #4DAACC
split-complementary
#AF4DCC #AACC4D #4DCC6F
monochromatic
#67237B #8F31AB #AF4DCC #C47DDA #DAACE7

Accessibility & contrast

On white

4.42
#AF4DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF4DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DCC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DCC#FFFFFF#000000##000000
##AF4DCC1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2672D0
Deuteranopia (green-blind)
#527BC9
Tritanopia (blue-blind)
#AE6386
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4dcc;
/* rgb */ color: rgb(175, 77, 204);
/* oklch */ color: oklch(59.8% 0.202 317.8);
Tailwind
colors: {
  custom: {
    50: '#ca85dc',
    500: '#af4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #af4dcc;
$custom-light: #ca85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dcc",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 286.299,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59792,
    "c": 0.20226,
    "h": 317.8
  },
  "luminance": 0.18781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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