#AF4EDC#AF4EDC

#AF4EDC is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.9% C 0.216 H 313.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF4EDC
RGBrgb(175, 78, 220)
HSLhsl(281, 67%, 58%)
HSVhsv(281, 65%, 86%)
CMYKcmyk(20.5%, 64.5%, 0%, 13.7%)
CIE-LABlab(51.53, 61.47, -55.97)
CIE-LCHlch(51.53, 83.13, 317.68°)
OKLaboklab(60.89% 0.1483 -0.1575)
OKLCHoklch(60.89% 0.216 313.3)
XYZxyz(33.3196, 19.7310, 69.7495)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EDC #7BDC4E
analogous
#684EDC #AF4EDC #DC4EC2
triadic
#AF4EDC #DCAF4E #4EDCAF
tetradic
#AF4EDC #DC684E #7BDC4E #4EC2DC
square
#AF4EDC #DC684E #7BDC4E #4EC2DC
split-complementary
#AF4EDC #C2DC4E #4EDC68
monochromatic
#6D1D93 #9327C6 #AF4EDC #C681E6 #DDB4F0

Accessibility & contrast

On white

4.25
#AF4EDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF4EDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EDC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EDC#FFFFFF#000000##000000
##AF4EDC1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E0
Deuteranopia (green-blind)
#457DD9
Tritanopia (blue-blind)
#AA6A8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4edc;
/* rgb */ color: rgb(175, 78, 220);
/* oklch */ color: oklch(60.9% 0.216 313.3);
Tailwind
colors: {
  custom: {
    50: '#cb86e7',
    500: '#af4edc',
    950: '#000000',
  },
}
SCSS
$custom: #af4edc;
$custom-light: #cb86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4edc",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 220
  },
  "hsl": {
    "h": 280.986,
    "s": 66.981,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60887,
    "c": 0.21632,
    "h": 313.3
  },
  "luminance": 0.1973
}

Semantic roles & 50–950 ramp

primary
#AF4EDC
secondary
#B9DFA7
accent
#EA3E74
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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