#AF40BC#AF40BC

#AF40BC is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.205 H 323.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF40BC
RGBrgb(175, 64, 188)
HSLhsl(294, 49%, 49%)
HSVhsv(294, 66%, 74%)
CMYKcmyk(6.9%, 66%, 0%, 26.3%)
CIE-LABlab(47.51, 61.25, -44.00)
CIE-LCHlch(47.51, 75.42, 324.31°)
OKLaboklab(57.39% 0.1647 -0.1224)
OKLCHoklch(57.39% 0.205 323.4)
XYZxyz(28.5888, 16.4132, 49.2294)
Luminance0.1641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40BC #4DBC40
analogous
#7140BC #AF40BC #BC408B
triadic
#AF40BC #BCAF40 #40BCAF
tetradic
#AF40BC #BC7140 #4DBC40 #408BBC
square
#AF40BC #BC7140 #4DBC40 #408BBC
split-complementary
#AF40BC #8BBC40 #40BC71
monochromatic
#5A2161 #85308E #AF40BC #C36CCD #D69ADD

Accessibility & contrast

On white

4.90
#AF40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40BC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40BC#FFFFFF#000000##FFFFFF
##AF40BC1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268C0
Deuteranopia (green-blind)
#5375B9
Tritanopia (blue-blind)
#B25479
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af40bc;
/* rgb */ color: rgb(175, 64, 188);
/* oklch */ color: oklch(57.4% 0.205 323.4);
Tailwind
colors: {
  custom: {
    50: '#ca7dd1',
    500: '#af40bc',
    950: '#000000',
  },
}
SCSS
$custom: #af40bc;
$custom-light: #ca7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af40bc",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 293.71,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57392,
    "c": 0.20522,
    "h": 323.4
  },
  "luminance": 0.16412
}

Semantic roles & 50–950 ramp

primary
#AF40BC
secondary
#95C98F
accent
#D94F5D
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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