#AF4FD9#AF4FD9

#AF4FD9 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.8% C 0.212 H 314.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF4FD9
RGBrgb(175, 79, 217)
HSLhsl(282, 64%, 58%)
HSVhsv(282, 64%, 85%)
CMYKcmyk(19.4%, 63.6%, 0%, 14.9%)
CIE-LABlab(51.52, 60.40, -54.30)
CIE-LCHlch(51.52, 81.22, 318.05°)
OKLaboklab(60.82% 0.1472 -0.1526)
OKLCHoklch(60.82% 0.212 314)
XYZxyz(32.9975, 19.7167, 67.6997)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FD9 #79D94F
analogous
#6A4FD9 #AF4FD9 #D94FBE
triadic
#AF4FD9 #D9AF4F #4FD9AF
tetradic
#AF4FD9 #D96A4F #79D94F #4FBED9
square
#AF4FD9 #D96A4F #79D94F #4FBED9
split-complementary
#AF4FD9 #BED94F #4FD96A
monochromatic
#6D1F8F #932AC1 #AF4FD9 #C681E4 #DDB4EF

Accessibility & contrast

On white

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

On black

4.94
#AF4FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FD9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FD9#FFFFFF#000000##000000
##AF4FD91.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1175DD
Deuteranopia (green-blind)
#497DD6
Tritanopia (blue-blind)
#AB698D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4fd9;
/* rgb */ color: rgb(175, 79, 217);
/* oklch */ color: oklch(60.8% 0.212 314.0);
Tailwind
colors: {
  custom: {
    50: '#ca86e5',
    500: '#af4fd9',
    950: '#000000',
  },
}
SCSS
$custom: #af4fd9;
$custom-light: #ca86e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fd9",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 281.739,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60818,
    "c": 0.21205,
    "h": 314
  },
  "luminance": 0.19716
}

Semantic roles & 50–950 ramp

primary
#AF4FD9
secondary
#B7DDA6
accent
#E74073
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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