#AF4EDD#AF4EDD

#AF4EDD is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.0% C 0.217 H 313.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF4EDD
RGBrgb(175, 78, 221)
HSLhsl(281, 68%, 59%)
HSVhsv(281, 65%, 87%)
CMYKcmyk(20.8%, 64.7%, 0%, 13.3%)
CIE-LABlab(51.59, 61.67, -56.44)
CIE-LCHlch(51.59, 83.60, 317.54°)
OKLaboklab(60.95% 0.1482 -0.1589)
OKLCHoklch(60.95% 0.217 313)
XYZxyz(33.4524, 19.7841, 70.4491)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EDD #7CDD4E
analogous
#674EDD #AF4EDD #DD4EC4
triadic
#AF4EDD #DDAF4E #4EDDAF
tetradic
#AF4EDD #DD674E #7CDD4E #4EC4DD
square
#AF4EDD #DD674E #7CDD4E #4EC4DD
split-complementary
#AF4EDD #C4DD4E #4EDD67
monochromatic
#6E1C94 #9426C7 #AF4EDD #C681E7 #DDB5F1

Accessibility & contrast

On white

4.24
#AF4EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF4EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EDD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EDD#FFFFFF#000000##000000
##AF4EDD1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E1
Deuteranopia (green-blind)
#447DDA
Tritanopia (blue-blind)
#AA6A8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4edd;
/* rgb */ color: rgb(175, 78, 221);
/* oklch */ color: oklch(61.0% 0.217 313.0);
Tailwind
colors: {
  custom: {
    50: '#cb86e8',
    500: '#af4edd',
    950: '#000000',
  },
}
SCSS
$custom: #af4edd;
$custom-light: #cb86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4edd",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 221
  },
  "hsl": {
    "h": 280.699,
    "s": 67.773,
    "l": 58.627
  },
  "oklch": {
    "l": 0.6095,
    "c": 0.21729,
    "h": 313
  },
  "luminance": 0.19783
}

Semantic roles & 50–950 ramp

primary
#AF4EDD
secondary
#B9E0A7
accent
#EB3D75
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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