#AF4DCA#AF4DCA

#AF4DCA is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.7% C 0.200 H 318.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF4DCA
RGBrgb(175, 77, 202)
HSLhsl(287, 54%, 55%)
HSVhsv(287, 62%, 79%)
CMYKcmyk(13.4%, 61.9%, 0%, 20.8%)
CIE-LABlab(50.32, 58.29, -47.63)
CIE-LCHlch(50.32, 75.27, 320.74°)
OKLaboklab(59.67% 0.1497 -0.1331)
OKLCHoklch(59.67% 0.2 318.4)
XYZxyz(30.9923, 18.6873, 57.8401)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DCA #68CA4D
analogous
#714DCA #AF4DCA #CA4DA7
triadic
#AF4DCA #CAAF4D #4DCAAF
tetradic
#AF4DCA #CA714D #68CA4D #4DA7CA
square
#AF4DCA #CA714D #68CA4D #4DA7CA
split-complementary
#AF4DCA #A7CA4D #4DCA71
monochromatic
#662479 #8E32A8 #AF4DCA #C47CD8 #D9ABE6

Accessibility & contrast

On white

4.43
#AF4DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AF4DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DCA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DCA#FFFFFF#000000##000000
##AF4DCA1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2971CE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#AF6285
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4dca;
/* rgb */ color: rgb(175, 77, 202);
/* oklch */ color: oklch(59.7% 0.200 318.4);
Tailwind
colors: {
  custom: {
    50: '#ca85db',
    500: '#af4dca',
    950: '#000000',
  },
}
SCSS
$custom: #af4dca;
$custom-light: #ca85db;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dca",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 287.04,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59674,
    "c": 0.20035,
    "h": 318.4
  },
  "luminance": 0.18686
}

Semantic roles & 50–950 ramp

primary
#AF4DCA
secondary
#AAD49F
accent
#DD4A6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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