#AF4CB5#AF4CB5

#AF4CB5 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.4% C 0.182 H 325.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF4CB5
RGBrgb(175, 76, 181)
HSLhsl(297, 42%, 50%)
HSVhsv(297, 58%, 71%)
CMYKcmyk(3.3%, 58%, 0%, 29%)
CIE-LABlab(49.03, 54.75, -37.51)
CIE-LCHlch(49.03, 66.37, 325.58°)
OKLaboklab(58.38% 0.1499 -0.1037)
OKLCHoklch(58.38% 0.182 325.3)
XYZxyz(28.6035, 17.6207, 45.6016)
Luminance0.1762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CB5 #52B54C
analogous
#7A4CB5 #AF4CB5 #B54C87
triadic
#AF4CB5 #B5AF4C #4CB5AF
tetradic
#AF4CB5 #B57A4C #52B54C #4C87B5
square
#AF4CB5 #B57A4C #52B54C #4C87B5
split-complementary
#AF4CB5 #87B54C #4CB57A
monochromatic
#5C275F #86398B #AF4CB5 #C277C7 #D6A3D9

Accessibility & contrast

On white

4.64
#AF4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF4CB5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CB5#FFFFFF#000000##FFFFFF
##AF4CB51.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6DB8
Deuteranopia (green-blind)
#5F79B2
Tritanopia (blue-blind)
#B35A79
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4cb5;
/* rgb */ color: rgb(175, 76, 181);
/* oklch */ color: oklch(58.4% 0.182 325.3);
Tailwind
colors: {
  custom: {
    50: '#ca84cb',
    500: '#af4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #af4cb5;
$custom-light: #ca84cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cb5",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 296.571,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58375,
    "c": 0.1823,
    "h": 325.3
  },
  "luminance": 0.17619
}

Semantic roles & 50–950 ramp

primary
#AF4CB5
secondary
#9AC697
accent
#D1565D
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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