#AF4DB7#AF4DB7

#AF4DB7 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.6% C 0.183 H 324.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF4DB7
RGBrgb(175, 77, 183)
HSLhsl(295, 42%, 51%)
HSVhsv(295, 58%, 72%)
CMYKcmyk(4.4%, 57.9%, 0%, 28.2%)
CIE-LABlab(49.30, 54.66, -38.25)
CIE-LCHlch(49.30, 66.71, 325.02°)
OKLaboklab(58.61% 0.1488 -0.1058)
OKLCHoklch(58.61% 0.183 324.6)
XYZxyz(28.8796, 17.8422, 46.7133)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DB7 #55B74D
analogous
#7A4DB7 #AF4DB7 #B74D8A
triadic
#AF4DB7 #B7AF4D #4DB7AF
tetradic
#AF4DB7 #B77A4D #55B74D #4D8AB7
square
#AF4DB7 #B77A4D #55B74D #4D8AB7
split-complementary
#AF4DB7 #8AB74D #4DB77A
monochromatic
#5E2862 #87398E #AF4DB7 #C379C9 #D6A4DA

Accessibility & contrast

On white

4.60
#AF4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF4DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DB7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DB7#FFFFFF#000000##FFFFFF
##AF4DB71.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6DBA
Deuteranopia (green-blind)
#5F79B4
Tritanopia (blue-blind)
#B25B7B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4db7;
/* rgb */ color: rgb(175, 77, 183);
/* oklch */ color: oklch(58.6% 0.183 324.6);
Tailwind
colors: {
  custom: {
    50: '#c984cd',
    500: '#af4db7',
    950: '#000000',
  },
}
SCSS
$custom: #af4db7;
$custom-light: #c984cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4db7",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 295.472,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58606,
    "c": 0.18262,
    "h": 324.6
  },
  "luminance": 0.17841
}

Semantic roles & 50–950 ramp

primary
#AF4DB7
secondary
#9CC798
accent
#D2565F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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