#AF40B7#AF40B7

#AF40B7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.1% C 0.201 H 325.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF40B7
RGBrgb(175, 64, 183)
HSLhsl(296, 48%, 48%)
HSVhsv(296, 65%, 72%)
CMYKcmyk(4.4%, 65%, 0%, 28.2%)
CIE-LABlab(47.24, 60.35, -41.52)
CIE-LCHlch(47.24, 73.25, 325.48°)
OKLaboklab(57.11% 0.1646 -0.1152)
OKLCHoklch(57.11% 0.201 325)
XYZxyz(28.0592, 16.2013, 46.4398)
Luminance0.1620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40B7 #48B740
analogous
#7340B7 #AF40B7 #B74083
triadic
#AF40B7 #B7AF40 #40B7AF
tetradic
#AF40B7 #B77340 #48B740 #4083B7
square
#AF40B7 #B77340 #48B740 #4083B7
split-complementary
#AF40B7 #83B740 #40B773
monochromatic
#58205C #84308A #AF40B7 #C469CB #D697DB

Accessibility & contrast

On white

4.95
#AF40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF40B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40B7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40B7#FFFFFF#000000##FFFFFF
##AF40B71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967BB
Deuteranopia (green-blind)
#5675B4
Tritanopia (blue-blind)
#B35276
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af40b7;
/* rgb */ color: rgb(175, 64, 183);
/* oklch */ color: oklch(57.1% 0.201 325.0);
Tailwind
colors: {
  custom: {
    50: '#ca7dcd',
    500: '#af40b7',
    950: '#000000',
  },
}
SCSS
$custom: #af40b7;
$custom-light: #ca7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#af40b7",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 295.966,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57106,
    "c": 0.20092,
    "h": 325
  },
  "luminance": 0.162
}

Semantic roles & 50–950 ramp

primary
#AF40B7
secondary
#90C68D
accent
#D85059
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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