#AF3FAB#AF3FAB

#AF3FAB is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.3% C 0.192 H 329.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF3FAB
RGBrgb(175, 63, 171)
HSLhsl(302, 47%, 47%)
HSVhsv(302, 64%, 69%)
CMYKcmyk(0%, 64%, 2.3%, 31.4%)
CIE-LABlab(46.46, 58.67, -35.69)
CIE-LCHlch(46.46, 68.68, 328.69°)
OKLaboklab(56.34% 0.1651 -0.0984)
OKLCHoklch(56.34% 0.192 329.2)
XYZxyz(26.8071, 15.6111, 40.1215)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FAB #3FAF43
analogous
#7B3FAF #AF3FAB #AF3F73
triadic
#AF3FAB #ABAF3F #3FABAF
tetradic
#AF3FAB #AF7B3F #3FAF43 #3F73AF
square
#AF3FAB #AF7B3F #3FAF43 #3F73AF
split-complementary
#AF3FAB #73AF3F #3FAF7B
monochromatic
#551F53 #822F7F #AF3FAB #C764C4 #D791D5

Accessibility & contrast

On white

5.09
#AF3FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AF3FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FAB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FAB#FFFFFF#000000##FFFFFF
##AF3FAB1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AE
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#B54C6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3fab;
/* rgb */ color: rgb(175, 63, 171);
/* oklch */ color: oklch(56.3% 0.192 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca7cc4',
    500: '#af3fab',
    950: '#000000',
  },
}
SCSS
$custom: #af3fab;
$custom-light: #ca7cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fab",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 302.143,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56339,
    "c": 0.1922,
    "h": 329.2
  },
  "luminance": 0.15609
}

Semantic roles & 50–950 ramp

primary
#AF3FAB
secondary
#87C389
accent
#D75651
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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