#AF8BB2#AF8BB2

#AF8BB2 is a light, moderate purple. Relative luminance 0.308; OKLCH L 68.3% C 0.070 H 323.8°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#AF8BB2
RGBrgb(175, 139, 178)
HSLhsl(295, 20%, 62%)
HSVhsv(295, 22%, 70%)
CMYKcmyk(1.7%, 21.9%, 0%, 30.2%)
CIE-LABlab(62.33, 20.56, -15.24)
CIE-LCHlch(62.33, 25.59, 323.44°)
OKLaboklab(68.33% 0.0561 -0.0411)
OKLCHoklch(68.33% 0.07 323.8)
XYZxyz(34.9467, 30.7943, 46.2138)
Luminance0.3079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BB2 #8EB28B
analogous
#9C8BB2 #AF8BB2 #B28BA2
triadic
#AF8BB2 #B2AF8B #8BB2AF
tetradic
#AF8BB2 #B29C8B #8EB28B #8BA2B2
square
#AF8BB2 #B29C8B #8EB28B #8BA2B2
split-complementary
#AF8BB2 #A2B28B #8BB29C
monochromatic
#724E75 #96669A #AF8BB2 #C8B0CA #E2D5E3

Accessibility & contrast

On white

2.93
#AF8BB2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AF8BB2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BB2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BB2#FFFFFF#000000##000000
##AF8BB21.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8894B4
Deuteranopia (green-blind)
#9098B1
Tritanopia (blue-blind)
#B18E98
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af8bb2;
/* rgb */ color: rgb(175, 139, 178);
/* oklch */ color: oklch(68.3% 0.070 323.8);
Tailwind
colors: {
  custom: {
    50: '#c7adc9',
    500: '#af8bb2',
    950: '#000000',
  },
}
SCSS
$custom: #af8bb2;
$custom-light: #c7adc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bb2",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 178
  },
  "hsl": {
    "h": 295.385,
    "s": 20.207,
    "l": 62.157
  },
  "oklch": {
    "l": 0.68328,
    "c": 0.0695,
    "h": 323.8
  },
  "luminance": 0.30794
}

Semantic roles & 50–950 ramp

primary
#AF8BB2
secondary
#C6D4C5
accent
#9F474E
background
#FCFAFC
surface
#F8F4F8
border
#D1CED1
text
#131013
muted
#827F82

Preview Lab

Preview with #AF8BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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