#AF4EDA#AF4EDA

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

Color values

HEX#AF4EDA
RGBrgb(175, 78, 218)
HSLhsl(282, 65%, 58%)
HSVhsv(282, 64%, 85%)
CMYKcmyk(19.7%, 64.2%, 0%, 14.5%)
CIE-LABlab(51.41, 61.06, -55.03)
CIE-LCHlch(51.41, 82.20, 317.97°)
OKLaboklab(60.76% 0.1483 -0.1548)
OKLCHoklch(60.76% 0.214 313.8)
XYZxyz(33.0563, 19.6257, 68.3629)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EDA #79DA4E
analogous
#694EDA #AF4EDA #DA4EBF
triadic
#AF4EDA #DAAF4E #4EDAAF
tetradic
#AF4EDA #DA694E #79DA4E #4EBFDA
square
#AF4EDA #DA694E #79DA4E #4EBFDA
split-complementary
#AF4EDA #BFDA4E #4EDA69
monochromatic
#6D1E90 #9329C2 #AF4EDA #C681E5 #DDB3EF

Accessibility & contrast

On white

4.26
#AF4EDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF4EDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EDA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EDA#FFFFFF#000000##000000
##AF4EDA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0675DE
Deuteranopia (green-blind)
#477DD7
Tritanopia (blue-blind)
#AB698D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4eda;
/* rgb */ color: rgb(175, 78, 218);
/* oklch */ color: oklch(60.8% 0.214 313.8);
Tailwind
colors: {
  custom: {
    50: '#cb86e6',
    500: '#af4eda',
    950: '#000000',
  },
}
SCSS
$custom: #af4eda;
$custom-light: #cb86e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eda",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 281.571,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60762,
    "c": 0.21437,
    "h": 313.8
  },
  "luminance": 0.19625
}

Semantic roles & 50–950 ramp

primary
#AF4EDA
secondary
#B7DEA6
accent
#E83F73
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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