#AF4CB3#AF4CB3

#AF4CB3 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.3% C 0.180 H 326.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF4CB3
RGBrgb(175, 76, 179)
HSLhsl(298, 40%, 50%)
HSVhsv(298, 58%, 70%)
CMYKcmyk(2.2%, 57.5%, 0%, 29.8%)
CIE-LABlab(48.93, 54.39, -36.50)
CIE-LCHlch(48.93, 65.50, 326.13°)
OKLaboklab(58.27% 0.1498 -0.1008)
OKLCHoklch(58.27% 0.181 326.1)
XYZxyz(28.3997, 17.5392, 44.5286)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CB3 #50B34C
analogous
#7C4CB3 #AF4CB3 #B34C83
triadic
#AF4CB3 #B3AF4C #4CB3AF
tetradic
#AF4CB3 #B37C4C #50B34C #4C83B3
square
#AF4CB3 #B37C4C #50B34C #4C83B3
split-complementary
#AF4CB3 #83B34C #4CB37C
monochromatic
#5B285D #853A88 #AF4CB3 #C277C5 #D5A2D7

Accessibility & contrast

On white

4.66
#AF4CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF4CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4CB3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CB3#FFFFFF#000000##FFFFFF
##AF4CB31.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB6
Deuteranopia (green-blind)
#6079B0
Tritanopia (blue-blind)
#B35978
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4cb3;
/* rgb */ color: rgb(175, 76, 179);
/* oklch */ color: oklch(58.3% 0.180 326.1);
Tailwind
colors: {
  custom: {
    50: '#c983ca',
    500: '#af4cb3',
    950: '#000000',
  },
}
SCSS
$custom: #af4cb3;
$custom-light: #c983ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cb3",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 297.67,
    "s": 40.392,
    "l": 50
  },
  "oklch": {
    "l": 0.58269,
    "c": 0.1805,
    "h": 326.1
  },
  "luminance": 0.17538
}

Semantic roles & 50–950 ramp

primary
#AF4CB3
secondary
#98C496
accent
#D0585C
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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