#AF4CB1#AF4CB1

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

Color values

HEX#AF4CB1
RGBrgb(175, 76, 177)
HSLhsl(299, 40%, 50%)
HSVhsv(299, 57%, 69%)
CMYKcmyk(1.1%, 57.1%, 0%, 30.6%)
CIE-LABlab(48.83, 54.03, -35.49)
CIE-LCHlch(48.83, 64.64, 326.70°)
OKLaboklab(58.16% 0.1495 -0.0979)
OKLCHoklch(58.16% 0.179 326.8)
XYZxyz(28.1989, 17.4588, 43.4711)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CB1 #4EB14C
analogous
#7D4CB1 #AF4CB1 #B14C81
triadic
#AF4CB1 #B1AF4C #4CB1AF
tetradic
#AF4CB1 #B17D4C #4EB14C #4C81B1
square
#AF4CB1 #B17D4C #4EB14C #4C81B1
split-complementary
#AF4CB1 #81B14C #4CB17D
monochromatic
#5A275B #853A86 #AF4CB1 #C376C4 #D6A1D7

Accessibility & contrast

On white

4.68
#AF4CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF4CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4CB1
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CB1#FFFFFF#000000##FFFFFF
##AF4CB11.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406CB4
Deuteranopia (green-blind)
#6179AE
Tritanopia (blue-blind)
#B45877
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4cb1;
/* rgb */ color: rgb(175, 76, 177);
/* oklch */ color: oklch(58.2% 0.179 326.8);
Tailwind
colors: {
  custom: {
    50: '#c983c8',
    500: '#af4cb1',
    950: '#000000',
  },
}
SCSS
$custom: #af4cb1;
$custom-light: #c983c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cb1",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 298.812,
    "s": 39.921,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58164,
    "c": 0.17872,
    "h": 326.8
  },
  "luminance": 0.17457
}

Semantic roles & 50–950 ramp

primary
#AF4CB1
secondary
#96C395
accent
#D0585A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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