#AF78BC#AF78BC

#AF78BC is a light, moderate purple. Relative luminance 0.262; OKLCH L 65.3% C 0.115 H 319.8°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF78BC
RGBrgb(175, 120, 188)
HSLhsl(289, 34%, 60%)
HSVhsv(289, 36%, 74%)
CMYKcmyk(6.9%, 36.2%, 0%, 26.3%)
CIE-LABlab(58.21, 33.23, -27.23)
CIE-LCHlch(58.21, 42.97, 320.66°)
OKLaboklab(65.3% 0.0882 -0.0746)
OKLCHoklch(65.3% 0.115 319.8)
XYZxyz(33.4716, 26.1787, 50.8570)
Luminance0.2618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78BC #85BC78
analogous
#8D78BC #AF78BC #BC78A7
triadic
#AF78BC #BCAF78 #78BCAF
tetradic
#AF78BC #BC8D78 #85BC78 #78A7BC
square
#AF78BC #BC8D78 #85BC78 #78A7BC
split-complementary
#AF78BC #A7BC78 #78BC8D
monochromatic
#703E7C #9552A5 #AF78BC #C7A1D0 #DFCAE5

Accessibility & contrast

On white

3.37
#AF78BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#AF78BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78BC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78BC#FFFFFF#000000##000000
##AF78BC1.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F88BF
Deuteranopia (green-blind)
#7D8EBA
Tritanopia (blue-blind)
#B08091
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af78bc;
/* rgb */ color: rgb(175, 120, 188);
/* oklch */ color: oklch(65.3% 0.115 319.8);
Tailwind
colors: {
  custom: {
    50: '#c8a0d0',
    500: '#af78bc',
    950: '#000000',
  },
}
SCSS
$custom: #af78bc;
$custom-light: #c8a0d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af78bc",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 188
  },
  "hsl": {
    "h": 288.529,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.65303,
    "c": 0.11549,
    "h": 319.8
  },
  "luminance": 0.26178
}

Semantic roles & 50–950 ramp

primary
#AF78BC
secondary
#C0D5BB
accent
#AC394F
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130F14
muted
#827E82

Preview Lab

Preview with #AF78BC

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

Preview Lab → · Contrast checker → · Palette generator →

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