#AF40BA#AF40BA

#AF40BA is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.203 H 324.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF40BA
RGBrgb(175, 64, 186)
HSLhsl(295, 49%, 49%)
HSVhsv(295, 66%, 73%)
CMYKcmyk(5.9%, 65.6%, 0%, 27.1%)
CIE-LABlab(47.40, 60.89, -43.01)
CIE-LCHlch(47.40, 74.55, 324.76°)
OKLaboklab(57.28% 0.1647 -0.1196)
OKLCHoklch(57.28% 0.203 324)
XYZxyz(28.3747, 16.3276, 48.1018)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40BA #4BBA40
analogous
#7240BA #AF40BA #BA4088
triadic
#AF40BA #BAAF40 #40BAAF
tetradic
#AF40BA #BA7240 #4BBA40 #4088BA
square
#AF40BA #BA7240 #4BBA40 #4088BA
split-complementary
#AF40BA #88BA40 #40BA72
monochromatic
#59215F #84308C #AF40BA #C36BCC #D699DC

Accessibility & contrast

On white

4.92
#AF40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40BA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40BA#FFFFFF#000000##FFFFFF
##AF40BA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#5475B7
Tritanopia (blue-blind)
#B25378
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af40ba;
/* rgb */ color: rgb(175, 64, 186);
/* oklch */ color: oklch(57.3% 0.203 324.0);
Tailwind
colors: {
  custom: {
    50: '#ca7dcf',
    500: '#af40ba',
    950: '#000000',
  },
}
SCSS
$custom: #af40ba;
$custom-light: #ca7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#af40ba",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 294.59,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57277,
    "c": 0.20349,
    "h": 324
  },
  "luminance": 0.16326
}

Semantic roles & 50–950 ramp

primary
#AF40BA
secondary
#93C88E
accent
#D84F5C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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