#AF40BF#AF40BF

#AF40BF is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.6% C 0.208 H 322.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF40BF
RGBrgb(175, 64, 191)
HSLhsl(292, 50%, 50%)
HSVhsv(292, 66%, 75%)
CMYKcmyk(8.4%, 66.5%, 0%, 25.1%)
CIE-LABlab(47.68, 61.80, -45.48)
CIE-LCHlch(47.68, 76.73, 323.65°)
OKLaboklab(57.57% 0.1647 -0.1267)
OKLCHoklch(57.57% 0.208 322.4)
XYZxyz(28.9156, 16.5439, 50.9503)
Luminance0.1654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40BF #50BF40
analogous
#7040BF #AF40BF #BF408F
triadic
#AF40BF #BFAF40 #40BFAF
tetradic
#AF40BF #BF7040 #50BF40 #408FBF
square
#AF40BF #BF7040 #50BF40 #408FBF
split-complementary
#AF40BF #8FBF40 #40BF70
monochromatic
#5B2163 #853191 #AF40BF #C26ECE #D59CDE

Accessibility & contrast

On white

4.87
#AF40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40BF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40BF#FFFFFF#000000##FFFFFF
##AF40BF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D69C3
Deuteranopia (green-blind)
#5175BC
Tritanopia (blue-blind)
#B1557A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af40bf;
/* rgb */ color: rgb(175, 64, 191);
/* oklch */ color: oklch(57.6% 0.208 322.4);
Tailwind
colors: {
  custom: {
    50: '#ca7dd3',
    500: '#af40bf',
    950: '#000000',
  },
}
SCSS
$custom: #af40bf;
$custom-light: #ca7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#af40bf",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 292.441,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.57568,
    "c": 0.20781,
    "h": 322.4
  },
  "luminance": 0.16542
}

Semantic roles & 50–950 ramp

primary
#AF40BF
secondary
#98CA91
accent
#D94E60
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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