#AF4FBF#AF4FBF

#AF4FBF is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.3% C 0.187 H 321.7°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF4FBF
RGBrgb(175, 79, 191)
HSLhsl(291, 47%, 53%)
HSVhsv(291, 59%, 75%)
CMYKcmyk(8.4%, 58.6%, 0%, 25.1%)
CIE-LABlab(50.06, 55.23, -41.70)
CIE-LCHlch(50.06, 69.20, 322.95°)
OKLaboklab(59.29% 0.1469 -0.1159)
OKLCHoklch(59.29% 0.187 321.7)
XYZxyz(29.8781, 18.4690, 51.2712)
Luminance0.1847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FBF #5FBF4F
analogous
#774FBF #AF4FBF #BF4F97
triadic
#AF4FBF #BFAF4F #4FBFAF
tetradic
#AF4FBF #BF774F #5FBF4F #4F97BF
square
#AF4FBF #BF774F #5FBF4F #4F97BF
split-complementary
#AF4FBF #97BF4F #4FBF77
monochromatic
#62276C #8B3899 #AF4FBF #C37CCF #D8A9E0

Accessibility & contrast

On white

4.47
#AF4FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#AF4FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FBF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FBF#FFFFFF#000000##000000
##AF4FBF1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3970C3
Deuteranopia (green-blind)
#5C7BBC
Tritanopia (blue-blind)
#B16080
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4fbf;
/* rgb */ color: rgb(175, 79, 191);
/* oklch */ color: oklch(59.3% 0.187 321.7);
Tailwind
colors: {
  custom: {
    50: '#ca86d3',
    500: '#af4fbf',
    950: '#000000',
  },
}
SCSS
$custom: #af4fbf;
$custom-light: #ca86d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fbf",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 291.429,
    "s": 46.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59292,
    "c": 0.18706,
    "h": 321.7
  },
  "luminance": 0.18468
}

Semantic roles & 50–950 ramp

primary
#AF4FBF
secondary
#A4CD9D
accent
#D65164
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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