#AF78BF#AF78BF

#AF78BF is a light, moderate purple. Relative luminance 0.263; OKLCH L 65.4% C 0.119 H 318.4°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AF78BF
RGBrgb(175, 120, 191)
HSLhsl(286, 36%, 61%)
HSVhsv(286, 37%, 75%)
CMYKcmyk(8.4%, 37.2%, 0%, 25.1%)
CIE-LABlab(58.33, 33.85, -28.75)
CIE-LCHlch(58.33, 44.41, 319.65°)
OKLaboklab(65.44% 0.0889 -0.0789)
OKLCHoklch(65.44% 0.119 318.4)
XYZxyz(33.7983, 26.3094, 52.5779)
Luminance0.2631 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78BF #88BF78
analogous
#8B78BF #AF78BF #BF78AB
triadic
#AF78BF #BFAF78 #78BFAF
tetradic
#AF78BF #BF8B78 #88BF78 #78ABBF
square
#AF78BF #BF8B78 #88BF78 #78ABBF
split-complementary
#AF78BF #ABBF78 #78BF8B
monochromatic
#713D80 #9550A9 #AF78BF #C8A2D3 #E0CBE6

Accessibility & contrast

On white

3.35
#AF78BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#AF78BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78BF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78BF#FFFFFF#000000##000000
##AF78BF1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E89C2
Deuteranopia (green-blind)
#7C8EBD
Tritanopia (blue-blind)
#AF8193
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af78bf;
/* rgb */ color: rgb(175, 120, 191);
/* oklch */ color: oklch(65.4% 0.119 318.4);
Tailwind
colors: {
  custom: {
    50: '#c8a0d2',
    500: '#af78bf',
    950: '#000000',
  },
}
SCSS
$custom: #af78bf;
$custom-light: #c8a0d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af78bf",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 286.479,
    "s": 35.678,
    "l": 60.98
  },
  "oklch": {
    "l": 0.65436,
    "c": 0.11886,
    "h": 318.4
  },
  "luminance": 0.26308
}

Semantic roles & 50–950 ramp

primary
#AF78BF
secondary
#C2D7BC
accent
#AF3752
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130F14
muted
#827E82

Preview Lab

Preview with #AF78BF

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

Preview Lab → · Contrast checker → · Palette generator →

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