#AF7BC2#AF7BC2

#AF7BC2 is a light, moderate purple. Relative luminance 0.272; OKLCH L 66.1% C 0.117 H 316.7°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AF7BC2
RGBrgb(175, 123, 194)
HSLhsl(284, 37%, 62%)
HSVhsv(284, 37%, 76%)
CMYKcmyk(9.8%, 36.6%, 0%, 23.9%)
CIE-LABlab(59.14, 32.80, -29.21)
CIE-LCHlch(59.14, 43.92, 318.31°)
OKLaboklab(66.09% 0.0851 -0.0802)
OKLCHoklch(66.09% 0.117 316.7)
XYZxyz(34.4983, 27.1757, 54.4566)
Luminance0.2717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BC2 #8EC27B
analogous
#8C7BC2 #AF7BC2 #C27BB2
triadic
#AF7BC2 #C2AF7B #7BC2AF
tetradic
#AF7BC2 #C28C7B #8EC27B #7BB2C2
square
#AF7BC2 #C28C7B #8EC27B #7BB2C2
split-complementary
#AF7BC2 #B2C27B #7BC28C
monochromatic
#723E85 #9651AF #AF7BC2 #C8A5D5 #E2CFE9

Accessibility & contrast

On white

3.26
#AF7BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#AF7BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BC2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BC2#FFFFFF#000000##000000
##AF7BC21.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#708BC5
Deuteranopia (green-blind)
#7D90C0
Tritanopia (blue-blind)
#AF8496
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af7bc2;
/* rgb */ color: rgb(175, 123, 194);
/* oklch */ color: oklch(66.1% 0.117 316.7);
Tailwind
colors: {
  custom: {
    50: '#c8a2d4',
    500: '#af7bc2',
    950: '#000000',
  },
}
SCSS
$custom: #af7bc2;
$custom-light: #c8a2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bc2",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 194
  },
  "hsl": {
    "h": 283.944,
    "s": 36.788,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66087,
    "c": 0.11695,
    "h": 316.7
  },
  "luminance": 0.27175
}

Semantic roles & 50–950 ramp

primary
#AF7BC2
secondary
#C6D9BF
accent
#B03656
background
#FCFAFD
surface
#F8F3FA
border
#D1CDD3
text
#130F14
muted
#827F83

Preview Lab

Preview with #AF7BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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