#AF4CDE#AF4CDE

#AF4CDE is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.8% C 0.221 H 312.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AF4CDE
RGBrgb(175, 76, 222)
HSLhsl(281, 69%, 58%)
HSVhsv(281, 66%, 87%)
CMYKcmyk(21.2%, 65.8%, 0%, 12.9%)
CIE-LABlab(51.33, 62.77, -57.43)
CIE-LCHlch(51.33, 85.07, 317.54°)
OKLaboklab(60.78% 0.1504 -0.1618)
OKLCHoklch(60.78% 0.221 312.9)
XYZxyz(33.4461, 19.5577, 71.1062)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CDE #7BDE4C
analogous
#664CDE #AF4CDE #DE4CC4
triadic
#AF4CDE #DEAF4C #4CDEAF
tetradic
#AF4CDE #DE664C #7BDE4C #4CC4DE
square
#AF4CDE #DE664C #7BDE4C #4CC4DE
split-complementary
#AF4CDE #C4DE4C #4CDE66
monochromatic
#6D1B94 #9325C8 #AF4CDE #C680E8 #DDB3F1

Accessibility & contrast

On white

4.28
#AF4CDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#AF4CDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CDE
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CDE#FFFFFF#000000##000000
##AF4CDE1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E2
Deuteranopia (green-blind)
#417CDB
Tritanopia (blue-blind)
#AA698F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cde;
/* rgb */ color: rgb(175, 76, 222);
/* oklch */ color: oklch(60.8% 0.221 312.9);
Tailwind
colors: {
  custom: {
    50: '#cb85e9',
    500: '#af4cde',
    950: '#000000',
  },
}
SCSS
$custom: #af4cde;
$custom-light: #cb85e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cde",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 280.685,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60784,
    "c": 0.22086,
    "h": 312.9
  },
  "luminance": 0.19557
}

Semantic roles & 50–950 ramp

primary
#AF4CDE
secondary
#B9E0A6
accent
#EC3C75
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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