#AF4CBC#AF4CBC

#AF4CBC is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.8% C 0.189 H 322.9°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AF4CBC
RGBrgb(175, 76, 188)
HSLhsl(293, 46%, 52%)
HSVhsv(293, 60%, 74%)
CMYKcmyk(6.9%, 59.6%, 0%, 26.3%)
CIE-LABlab(49.39, 56.05, -41.02)
CIE-LCHlch(49.39, 69.45, 323.80°)
OKLaboklab(58.76% 0.1505 -0.1139)
OKLCHoklch(58.76% 0.189 322.9)
XYZxyz(29.3398, 17.9152, 49.4798)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CBC #59BC4C
analogous
#774CBC #AF4CBC #BC4C91
triadic
#AF4CBC #BCAF4C #4CBCAF
tetradic
#AF4CBC #BC774C #59BC4C #4C91BC
square
#AF4CBC #BC774C #59BC4C #4C91BC
split-complementary
#AF4CBC #91BC4C #4CBC77
monochromatic
#602767 #893794 #AF4CBC #C379CD #D7A5DD

Accessibility & contrast

On white

4.58
#AF4CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF4CBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CBC
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CBC#FFFFFF#000000##000000
##AF4CBC1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#376EBF
Deuteranopia (green-blind)
#5B79B9
Tritanopia (blue-blind)
#B25C7D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4cbc;
/* rgb */ color: rgb(175, 76, 188);
/* oklch */ color: oklch(58.8% 0.189 322.9);
Tailwind
colors: {
  custom: {
    50: '#ca84d0',
    500: '#af4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #af4cbc;
$custom-light: #ca84d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cbc",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 293.036,
    "s": 45.528,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58755,
    "c": 0.18868,
    "h": 322.9
  },
  "luminance": 0.17914
}

Semantic roles & 50–950 ramp

primary
#AF4CBC
secondary
#9FCA99
accent
#D55362
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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