#AF4CB2#AF4CB2

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

Color values

HEX#AF4CB2
RGBrgb(175, 76, 178)
HSLhsl(298, 40%, 50%)
HSVhsv(298, 57%, 70%)
CMYKcmyk(1.7%, 57.3%, 0%, 30.2%)
CIE-LABlab(48.88, 54.21, -35.99)
CIE-LCHlch(48.88, 65.07, 326.41°)
OKLaboklab(58.22% 0.1497 -0.0993)
OKLCHoklch(58.22% 0.18 326.4)
XYZxyz(28.2990, 17.4989, 43.9979)
Luminance0.1750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CB2 #4FB24C
analogous
#7C4CB2 #AF4CB2 #B24C82
triadic
#AF4CB2 #B2AF4C #4CB2AF
tetradic
#AF4CB2 #B27C4C #4FB24C #4C82B2
square
#AF4CB2 #B27C4C #4FB24C #4C82B2
split-complementary
#AF4CB2 #82B24C #4CB27C
monochromatic
#5B275C #853A87 #AF4CB2 #C276C5 #D5A1D7

Accessibility & contrast

On white

4.67
#AF4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF4CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4CB2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CB2#FFFFFF#000000##FFFFFF
##AF4CB21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af4cb2;
/* rgb */ color: rgb(175, 76, 178);
/* oklch */ color: oklch(58.2% 0.180 326.4);
Tailwind
colors: {
  custom: {
    50: '#c983c9',
    500: '#af4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #af4cb2;
$custom-light: #c983c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cb2",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 298.235,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58217,
    "c": 0.17961,
    "h": 326.4
  },
  "luminance": 0.17497
}

Semantic roles & 50–950 ramp

primary
#AF4CB2
secondary
#97C496
accent
#D0585B
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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