#AF46BF#AF46BF

#AF46BF is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.2% C 0.200 H 322.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF46BF
RGBrgb(175, 70, 191)
HSLhsl(292, 49%, 51%)
HSVhsv(292, 63%, 75%)
CMYKcmyk(8.4%, 63.4%, 0%, 25.1%)
CIE-LABlab(48.58, 59.28, -44.04)
CIE-LCHlch(48.58, 73.85, 323.39°)
OKLaboklab(58.22% 0.1579 -0.1226)
OKLCHoklch(58.22% 0.2 322.2)
XYZxyz(29.2723, 17.2574, 51.0693)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46BF #56BF46
analogous
#7246BF #AF46BF #BF4692
triadic
#AF46BF #BFAF46 #46BFAF
tetradic
#AF46BF #BF7246 #56BF46 #4692BF
square
#AF46BF #BF7246 #56BF46 #4692BF
split-complementary
#AF46BF #92BF46 #46BF72
monochromatic
#5E2467 #883394 #AF46BF #C373CF #D6A1DE

Accessibility & contrast

On white

4.72
#AF46BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF46BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46BF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46BF#FFFFFF#000000##FFFFFF
##AF46BF1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6CC3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#B1597C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af46bf;
/* rgb */ color: rgb(175, 70, 191);
/* oklch */ color: oklch(58.2% 0.200 322.2);
Tailwind
colors: {
  custom: {
    50: '#ca80d3',
    500: '#af46bf',
    950: '#000000',
  },
}
SCSS
$custom: #af46bf;
$custom-light: #ca80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af46bf",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 292.066,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.19989,
    "h": 322.2
  },
  "luminance": 0.17256
}

Semantic roles & 50–950 ramp

primary
#AF46BF
secondary
#9DCB96
accent
#D85062
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF46BF

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

Preview Lab → · Contrast checker → · Palette generator →

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