#AF46BC#AF46BC

#AF46BC is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.0% C 0.197 H 323.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF46BC
RGBrgb(175, 70, 188)
HSLhsl(293, 47%, 51%)
HSVhsv(293, 63%, 74%)
CMYKcmyk(6.9%, 62.8%, 0%, 26.3%)
CIE-LABlab(48.42, 58.73, -42.56)
CIE-LCHlch(48.42, 72.53, 324.07°)
OKLaboklab(58.05% 0.1578 -0.1183)
OKLCHoklch(58.05% 0.197 323.1)
XYZxyz(28.9456, 17.1267, 49.3483)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46BC #53BC46
analogous
#7446BC #AF46BC #BC468E
triadic
#AF46BC #BCAF46 #46BCAF
tetradic
#AF46BC #BC7446 #53BC46 #468EBC
square
#AF46BC #BC7446 #53BC46 #468EBC
split-complementary
#AF46BC #8EBC46 #46BC74
monochromatic
#5D2464 #863490 #AF46BC #C273CC #D6A0DD

Accessibility & contrast

On white

4.75
#AF46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46BC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46BC#FFFFFF#000000##FFFFFF
##AF46BC1.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BC0
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#B2587B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af46bc;
/* rgb */ color: rgb(175, 70, 188);
/* oklch */ color: oklch(58.0% 0.197 323.1);
Tailwind
colors: {
  custom: {
    50: '#ca80d1',
    500: '#af46bc',
    950: '#000000',
  },
}
SCSS
$custom: #af46bc;
$custom-light: #ca80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af46bc",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 293.39,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58048,
    "c": 0.1972,
    "h": 323.1
  },
  "luminance": 0.17125
}

Semantic roles & 50–950 ramp

primary
#AF46BC
secondary
#9AC995
accent
#D65160
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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