#AF46BA#AF46BA

#AF46BA is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.9% C 0.195 H 323.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF46BA
RGBrgb(175, 70, 186)
HSLhsl(294, 46%, 50%)
HSVhsv(294, 62%, 73%)
CMYKcmyk(5.9%, 62.4%, 0%, 27.1%)
CIE-LABlab(48.31, 58.36, -41.57)
CIE-LCHlch(48.31, 71.65, 324.54°)
OKLaboklab(57.94% 0.1577 -0.1154)
OKLCHoklch(57.94% 0.195 323.8)
XYZxyz(28.7315, 17.0411, 48.2207)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46BA #51BA46
analogous
#7546BA #AF46BA #BA468B
triadic
#AF46BA #BAAF46 #46BAAF
tetradic
#AF46BA #BA7546 #51BA46 #468BBA
square
#AF46BA #BA7546 #51BA46 #468BBA
split-complementary
#AF46BA #8BBA46 #46BA75
monochromatic
#5C2461 #85358E #AF46BA #C273CB #D69FDB

Accessibility & contrast

On white

4.76
#AF46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46BA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46BA#FFFFFF#000000##FFFFFF
##AF46BA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBE
Deuteranopia (green-blind)
#5877B7
Tritanopia (blue-blind)
#B2577A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af46ba;
/* rgb */ color: rgb(175, 70, 186);
/* oklch */ color: oklch(57.9% 0.195 323.8);
Tailwind
colors: {
  custom: {
    50: '#ca80cf',
    500: '#af46ba',
    950: '#000000',
  },
}
SCSS
$custom: #af46ba;
$custom-light: #ca80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af46ba",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 294.31,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57935,
    "c": 0.19542,
    "h": 323.8
  },
  "luminance": 0.17039
}

Semantic roles & 50–950 ramp

primary
#AF46BA
secondary
#99C894
accent
#D5525F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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