#AF4FDF#AF4FDF

#AF4FDF is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.2% C 0.218 H 312.4°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF4FDF
RGBrgb(175, 79, 223)
HSLhsl(280, 69%, 59%)
HSVhsv(280, 65%, 87%)
CMYKcmyk(21.5%, 64.6%, 0%, 12.5%)
CIE-LABlab(51.88, 61.64, -57.12)
CIE-LCHlch(51.88, 84.04, 317.18°)
OKLaboklab(61.19% 0.147 -0.1609)
OKLCHoklch(61.19% 0.218 312.4)
XYZxyz(33.7921, 20.0345, 71.8847)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FDF #7FDF4F
analogous
#674FDF #AF4FDF #DF4FC7
triadic
#AF4FDF #DFAF4F #4FDFAF
tetradic
#AF4FDF #DF674F #7FDF4F #4FC7DF
square
#AF4FDF #DF674F #7FDF4F #4FC7DF
split-complementary
#AF4FDF #C7DF4F #4FDF67
monochromatic
#6F1C98 #9425CC #AF4FDF #C783E8 #DEB7F2

Accessibility & contrast

On white

4.19
#AF4FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AF4FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FDF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FDF#FFFFFF#000000##000000
##AF4FDF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#437EDC
Tritanopia (blue-blind)
#AA6B90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4fdf;
/* rgb */ color: rgb(175, 79, 223);
/* oklch */ color: oklch(61.2% 0.218 312.4);
Tailwind
colors: {
  custom: {
    50: '#cb86ea',
    500: '#af4fdf',
    950: '#000000',
  },
}
SCSS
$custom: #af4fdf;
$custom-light: #cb86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fdf",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 223
  },
  "hsl": {
    "h": 280,
    "s": 69.231,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61194,
    "c": 0.21793,
    "h": 312.4
  },
  "luminance": 0.20034
}

Semantic roles & 50–950 ramp

primary
#AF4FDF
secondary
#BCE1A9
accent
#EC3C77
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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