#BA7FAC#BA7FAC

#BA7FAC is a light, moderate pink. Relative luminance 0.286; OKLCH L 67.1% C 0.094 H 335.5°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#BA7FAC
RGBrgb(186, 127, 172)
HSLhsl(314, 30%, 61%)
HSVhsv(314, 32%, 73%)
CMYKcmyk(0%, 31.7%, 7.5%, 27.1%)
CIE-LABlab(60.43, 29.93, -14.61)
CIE-LCHlch(60.43, 33.31, 333.99°)
OKLaboklab(67.06% 0.0858 -0.0391)
OKLCHoklch(67.06% 0.094 335.5)
XYZxyz(35.2851, 28.5979, 42.6830)
Luminance0.2860 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FAC #7FBA8D
analogous
#AB7FBA #BA7FAC #BA7F8F
triadic
#BA7FAC #ACBA7F #7FACBA
tetradic
#BA7FAC #BAAB7F #7FBA8D #7F8FBA
square
#BA7FAC #BAAB7F #7FBA8D #7F8FBA
split-complementary
#BA7FAC #8FBA7F #7FBAAB
monochromatic
#7C436E #A45892 #BA7FAC #CFA7C6 #E5CFE0

Accessibility & contrast

On white

3.13
#BA7FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#BA7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FAC
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FAC#FFFFFF#000000##000000
##BA7FAC1.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8CAE
Deuteranopia (green-blind)
#8E95AA
Tritanopia (blue-blind)
#C0818F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba7fac;
/* rgb */ color: rgb(186, 127, 172);
/* oklch */ color: oklch(67.1% 0.094 335.5);
Tailwind
colors: {
  custom: {
    50: '#cfa5c4',
    500: '#ba7fac',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fac;
$custom-light: #cfa5c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fac",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 314.237,
    "s": 29.949,
    "l": 61.373
  },
  "oklch": {
    "l": 0.67062,
    "c": 0.09431,
    "h": 335.5
  },
  "luminance": 0.28596
}

Semantic roles & 50–950 ramp

primary
#BA7FAC
secondary
#BFD5C5
accent
#A9563D
background
#FCFAFC
surface
#F9F4F8
border
#D2CED1
text
#140F12
muted
#827F81

Preview Lab

Preview with #BA7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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