#AF4DC8#AF4DC8

#AF4DC8 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.6% C 0.198 H 319.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF4DC8
RGBrgb(175, 77, 200)
HSLhsl(288, 53%, 54%)
HSVhsv(288, 62%, 78%)
CMYKcmyk(12.5%, 61.5%, 0%, 21.6%)
CIE-LABlab(50.21, 57.89, -46.66)
CIE-LCHlch(50.21, 74.36, 321.13°)
OKLaboklab(59.56% 0.1497 -0.1303)
OKLCHoklch(59.56% 0.198 319)
XYZxyz(30.7570, 18.5932, 56.6011)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DC8 #66C84D
analogous
#724DC8 #AF4DC8 #C84DA4
triadic
#AF4DC8 #C8AF4D #4DC8AF
tetradic
#AF4DC8 #C8724D #66C84D #4DA4C8
square
#AF4DC8 #C8724D #66C84D #4DA4C8
split-complementary
#AF4DC8 #A4C84D #4DC872
monochromatic
#662476 #8E33A5 #AF4DC8 #C47CD6 #D9ABE5

Accessibility & contrast

On white

4.45
#AF4DC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF4DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DC8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DC8#FFFFFF#000000##000000
##AF4DC81.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C71CC
Deuteranopia (green-blind)
#547BC5
Tritanopia (blue-blind)
#AF6184
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4dc8;
/* rgb */ color: rgb(175, 77, 200);
/* oklch */ color: oklch(59.6% 0.198 319.0);
Tailwind
colors: {
  custom: {
    50: '#ca85d9',
    500: '#af4dc8',
    950: '#000000',
  },
}
SCSS
$custom: #af4dc8;
$custom-light: #ca85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dc8",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 287.805,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59557,
    "c": 0.19845,
    "h": 319
  },
  "luminance": 0.18592
}

Semantic roles & 50–950 ramp

primary
#AF4DC8
secondary
#A9D29E
accent
#DC4C69
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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