#AF4CB4#AF4CB4

#AF4CB4 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.3% C 0.181 H 325.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF4CB4
RGBrgb(175, 76, 180)
HSLhsl(297, 41%, 50%)
HSVhsv(297, 58%, 71%)
CMYKcmyk(2.8%, 57.8%, 0%, 29.4%)
CIE-LABlab(48.98, 54.57, -37.01)
CIE-LCHlch(48.98, 65.93, 325.86°)
OKLaboklab(58.32% 0.1498 -0.1022)
OKLCHoklch(58.32% 0.181 325.7)
XYZxyz(28.5012, 17.5798, 45.0632)
Luminance0.1758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CB4 #51B44C
analogous
#7B4CB4 #AF4CB4 #B44C85
triadic
#AF4CB4 #B4AF4C #4CB4AF
tetradic
#AF4CB4 #B47B4C #51B44C #4C85B4
square
#AF4CB4 #B47B4C #51B44C #4C85B4
split-complementary
#AF4CB4 #85B44C #4CB47B
monochromatic
#5C275E #853A89 #AF4CB4 #C277C6 #D6A2D8

Accessibility & contrast

On white

4.65
#AF4CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AF4CB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4CB4
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CB4#FFFFFF#000000##FFFFFF
##AF4CB41.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB7
Deuteranopia (green-blind)
#5F79B1
Tritanopia (blue-blind)
#B35979
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4cb4;
/* rgb */ color: rgb(175, 76, 180);
/* oklch */ color: oklch(58.3% 0.181 325.7);
Tailwind
colors: {
  custom: {
    50: '#c984cb',
    500: '#af4cb4',
    950: '#000000',
  },
}
SCSS
$custom: #af4cb4;
$custom-light: #c984cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cb4",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 297.115,
    "s": 40.945,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58322,
    "c": 0.1814,
    "h": 325.7
  },
  "luminance": 0.17578
}

Semantic roles & 50–950 ramp

primary
#AF4CB4
secondary
#99C597
accent
#D1575D
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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