#AF4FDD#AF4FDD

#AF4FDD is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.1% C 0.216 H 312.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF4FDD
RGBrgb(175, 79, 221)
HSLhsl(281, 68%, 59%)
HSVhsv(281, 64%, 87%)
CMYKcmyk(20.8%, 64.3%, 0%, 13.3%)
CIE-LABlab(51.75, 61.22, -56.18)
CIE-LCHlch(51.75, 83.10, 317.46°)
OKLaboklab(61.07% 0.1471 -0.1582)
OKLCHoklch(61.07% 0.216 312.9)
XYZxyz(33.5240, 19.9273, 70.4730)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FDD #7DDD4F
analogous
#684FDD #AF4FDD #DD4FC4
triadic
#AF4FDD #DDAF4F #4FDDAF
tetradic
#AF4FDD #DD684F #7DDD4F #4FC4DD
square
#AF4FDD #DD684F #7DDD4F #4FC4DD
split-complementary
#AF4FDD #C4DD4F #4FDD68
monochromatic
#6E1D95 #9427C8 #AF4FDD #C682E7 #DEB6F1

Accessibility & contrast

On white

4.21
#AF4FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AF4FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FDD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FDD#FFFFFF#000000##000000
##AF4FDD1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E1
Deuteranopia (green-blind)
#457EDA
Tritanopia (blue-blind)
#AA6B8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4fdd;
/* rgb */ color: rgb(175, 79, 221);
/* oklch */ color: oklch(61.1% 0.216 312.9);
Tailwind
colors: {
  custom: {
    50: '#cb86e8',
    500: '#af4fdd',
    950: '#000000',
  },
}
SCSS
$custom: #af4fdd;
$custom-light: #cb86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fdd",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 221
  },
  "hsl": {
    "h": 280.563,
    "s": 67.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61067,
    "c": 0.21597,
    "h": 312.9
  },
  "luminance": 0.19926
}

Semantic roles & 50–950 ramp

primary
#AF4FDD
secondary
#BAE0A8
accent
#EA3D75
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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