#AF47BE#AF47BE

#AF47BE is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.3% C 0.198 H 322.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF47BE
RGBrgb(175, 71, 190)
HSLhsl(292, 48%, 51%)
HSVhsv(292, 63%, 75%)
CMYKcmyk(7.9%, 62.6%, 0%, 25.5%)
CIE-LABlab(48.69, 58.66, -43.30)
CIE-LCHlch(48.69, 72.91, 323.57°)
OKLaboklab(58.28% 0.1567 -0.1205)
OKLCHoklch(58.28% 0.198 322.4)
XYZxyz(29.2257, 17.3397, 50.5127)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47BE #56BE47
analogous
#7347BE #AF47BE #BE4791
triadic
#AF47BE #BEAF47 #47BEAF
tetradic
#AF47BE #BE7347 #56BE47 #4791BE
square
#AF47BE #BE7347 #56BE47 #4791BE
split-complementary
#AF47BE #91BE47 #47BE73
monochromatic
#5E2466 #883494 #AF47BE #C374CE #D6A1DE

Accessibility & contrast

On white

4.70
#AF47BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF47BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47BE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47BE#FFFFFF#000000##FFFFFF
##AF47BE1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6CC2
Deuteranopia (green-blind)
#5778BB
Tritanopia (blue-blind)
#B1597C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af47be;
/* rgb */ color: rgb(175, 71, 190);
/* oklch */ color: oklch(58.3% 0.198 322.4);
Tailwind
colors: {
  custom: {
    50: '#ca81d2',
    500: '#af47be',
    950: '#000000',
  },
}
SCSS
$custom: #af47be;
$custom-light: #ca81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af47be",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 292.437,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58276,
    "c": 0.19761,
    "h": 322.4
  },
  "luminance": 0.17338
}

Semantic roles & 50–950 ramp

primary
#AF47BE
secondary
#9DCB96
accent
#D75061
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF47BE

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

Preview Lab → · Contrast checker → · Palette generator →

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