#AF46BE#AF46BE

#AF46BE is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.199 H 322.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF46BE
RGBrgb(175, 70, 190)
HSLhsl(293, 48%, 51%)
HSVhsv(293, 63%, 75%)
CMYKcmyk(7.9%, 63.2%, 0%, 25.5%)
CIE-LABlab(48.53, 59.10, -43.55)
CIE-LCHlch(48.53, 73.41, 323.61°)
OKLaboklab(58.16% 0.1578 -0.1212)
OKLCHoklch(58.16% 0.199 322.5)
XYZxyz(29.1627, 17.2135, 50.4917)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46BE #55BE46
analogous
#7346BE #AF46BE #BE4691
triadic
#AF46BE #BEAF46 #46BEAF
tetradic
#AF46BE #BE7346 #55BE46 #4691BE
square
#AF46BE #BE7346 #55BE46 #4691BE
split-complementary
#AF46BE #91BE46 #46BE73
monochromatic
#5E2466 #873493 #AF46BE #C373CE #D6A1DE

Accessibility & contrast

On white

4.73
#AF46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AF46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46BE
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46BE#FFFFFF#000000##FFFFFF
##AF46BE1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6BC2
Deuteranopia (green-blind)
#5677BB
Tritanopia (blue-blind)
#B1597C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af46be;
/* rgb */ color: rgb(175, 70, 190);
/* oklch */ color: oklch(58.2% 0.199 322.5);
Tailwind
colors: {
  custom: {
    50: '#ca80d2',
    500: '#af46be',
    950: '#000000',
  },
}
SCSS
$custom: #af46be;
$custom-light: #ca80d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af46be",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 292.5,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58162,
    "c": 0.19898,
    "h": 322.5
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#AF46BE
secondary
#9CCA95
accent
#D85061
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF46BE

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

Preview Lab → · Contrast checker → · Palette generator →

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