#AF4CBB#AF4CBB

#AF4CBB is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.7% C 0.188 H 323.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF4CBB
RGBrgb(175, 76, 187)
HSLhsl(294, 45%, 52%)
HSVhsv(294, 59%, 73%)
CMYKcmyk(6.4%, 59.4%, 0%, 26.7%)
CIE-LABlab(49.34, 55.86, -40.52)
CIE-LCHlch(49.34, 69.01, 324.05°)
OKLaboklab(58.7% 0.1504 -0.1124)
OKLCHoklch(58.7% 0.188 323.2)
XYZxyz(29.2324, 17.8722, 48.9140)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CBB #58BB4C
analogous
#784CBB #AF4CBB #BB4C8F
triadic
#AF4CBB #BBAF4C #4CBBAF
tetradic
#AF4CBB #BB784C #58BB4C #4C8FBB
square
#AF4CBB #BB784C #58BB4C #4C8FBB
split-complementary
#AF4CBB #8FBB4C #4CBB78
monochromatic
#5F2766 #883892 #AF4CBB #C378CC #D7A5DD

Accessibility & contrast

On white

4.59
#AF4CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF4CBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4CBB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CBB#FFFFFF#000000##FFFFFF
##AF4CBB1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBE
Deuteranopia (green-blind)
#5C79B8
Tritanopia (blue-blind)
#B25C7C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4cbb;
/* rgb */ color: rgb(175, 76, 187);
/* oklch */ color: oklch(58.7% 0.188 323.2);
Tailwind
colors: {
  custom: {
    50: '#ca84d0',
    500: '#af4cbb',
    950: '#000000',
  },
}
SCSS
$custom: #af4cbb;
$custom-light: #ca84d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cbb",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 293.514,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.587,
    "c": 0.18776,
    "h": 323.2
  },
  "luminance": 0.17871
}

Semantic roles & 50–950 ramp

primary
#AF4CBB
secondary
#9ECA99
accent
#D55361
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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